Allow OPTIONS method for CORS preflight req
This commit is contained in:
parent
a0c778b9c3
commit
49af555da3
1 changed files with 10 additions and 1 deletions
|
|
@ -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: {},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue