Fix CORS allowed methods

This commit is contained in:
Alex Ling 2022-03-22 10:46:09 +00:00
parent 0d52544617
commit a5a7396edd

View File

@ -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"