mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-17 00:03:36 -04:00
Fix CORS allowed methods
This commit is contained in:
@@ -73,7 +73,7 @@ macro get_username(env)
|
||||
end
|
||||
|
||||
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," \
|
||||
"X-HTTP-Method-Override, Content-Type, Cache-Control, Accept," \
|
||||
"Authorization"
|
||||
|
||||
Reference in New Issue
Block a user