diff --git a/src/util/web.cr b/src/util/web.cr index 1e6a0c7..366af04 100644 --- a/src/util/web.cr +++ b/src/util/web.cr @@ -73,7 +73,8 @@ macro get_username(env) end macro cors - env.response.headers["Access-Control-Allow-Methods"] = "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"