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