Allow OPTIONS method for CORS preflight req

This commit is contained in:
Daniel Lugo 2021-10-10 15:58:31 -04:00
parent a0c778b9c3
commit 49af555da3

View file

@ -25,7 +25,16 @@ module.exports = {
"/api/encryption/exchange": true
},
PUT: {},
DELETE: {}
DELETE: {},
// Preflight request (CORS)
get OPTIONS() {
return {
...this.POST,
...this.GET,
...this.PUT,
...this.DELETE
}
}
},
sensitiveRoutes: {
GET: {},