mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 10:55:30 -04:00
Fix CORS allowed methods
This commit is contained in:
parent
0d52544617
commit
a5a7396edd
@ -73,7 +73,7 @@ macro get_username(env)
|
|||||||
end
|
end
|
||||||
|
|
||||||
macro cors
|
macro cors
|
||||||
env.response.headers["Allow"] = "HEAD,GET,PUT,POST,DELETE,OPTIONS"
|
env.response.headers["Access-Control-Allow-Methods"] = "HEAD,GET,PUT,POST,DELETE,OPTIONS"
|
||||||
env.response.headers["Access-Control-Allow-Headers"] = "X-Requested-With," \
|
env.response.headers["Access-Control-Allow-Headers"] = "X-Requested-With," \
|
||||||
"X-HTTP-Method-Override, Content-Type, Cache-Control, Accept," \
|
"X-HTTP-Method-Override, Content-Type, Cache-Control, Accept," \
|
||||||
"Authorization"
|
"Authorization"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user