mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Also allow Authorization header
This commit is contained in:
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user