mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-31 19:20:25 +00:00
add x-api-user and x-api-key to accpeted headers
This commit is contained in:
parent
1fadb7955a
commit
75c1a38beb
1 changed files with 1 additions and 1 deletions
|
|
@ -17,5 +17,5 @@ module.exports.view = (req, res, next) ->
|
|||
module.exports.allowCrossDomain = (req, res, next) ->
|
||||
res.header "Access-Control-Allow-Origin", '*'
|
||||
res.header "Access-Control-Allow-Methods", "GET,PUT,POST,DELETE"
|
||||
res.header "Access-Control-Allow-Headers", "Content-Type,x-requested-with"
|
||||
res.header "Access-Control-Allow-Headers", "Content-Type,x-requested-with,x-api-user,x-api-key"
|
||||
next()
|
||||
Loading…
Reference in a new issue