diff --git a/src/util/web.cr b/src/util/web.cr index e74d4f9..3662edb 100644 --- a/src/util/web.cr +++ b/src/util/web.cr @@ -60,7 +60,9 @@ end macro cors env.response.headers["Allow"] = "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" + env.response.headers["Access-Control-Allow-Headers"] = "X-Requested-With," \ + "X-HTTP-Method-Override, Content-Type, Cache-Control, Accept," \ + "Authorization" env.response.headers["Access-Control-Allow-Origin"] = "*" end