mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Access-Control-Allow-Headers: Authorization, Content-Type - refs #1922
This commit is contained in:
parent
418eb7c5c6
commit
f0fadc28dd
3 changed files with 3 additions and 3 deletions
|
|
@ -1129,7 +1129,7 @@ async def derive_named_parameters(db, sql):
|
|||
|
||||
def add_cors_headers(headers):
|
||||
headers["Access-Control-Allow-Origin"] = "*"
|
||||
headers["Access-Control-Allow-Headers"] = "Authorization"
|
||||
headers["Access-Control-Allow-Headers"] = "Authorization, Content-Type"
|
||||
headers["Access-Control-Expose-Headers"] = "Link"
|
||||
headers["Access-Control-Allow-Methods"] = "GET, POST, HEAD, OPTIONS"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue