Also allow Authorization header

This commit is contained in:
rubenwardy 2021-11-24 15:49:00 +00:00
parent d485e686d9
commit d0741fde6e

@ -35,7 +35,7 @@ def cors_allowed(f):
res = f(*args, **kwargs) res = f(*args, **kwargs)
res.headers["Access-Control-Allow-Origin"] = "*" res.headers["Access-Control-Allow-Origin"] = "*"
res.headers["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, OPTIONS" res.headers["Access-Control-Allow-Methods"] = "GET, POST, PUT, DELETE, OPTIONS"
res.headers["Access-Control-Allow-Headers"] = "Content-Type" res.headers["Access-Control-Allow-Headers"] = "Content-Type, Authorization"
return res return res
return inner return inner