mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
--cors Access-Control-Max-Age: 3600, closes #2079
This commit is contained in:
parent
9584879534
commit
b49fa446d6
3 changed files with 20 additions and 1 deletions
|
|
@ -1141,6 +1141,7 @@ def add_cors_headers(headers):
|
|||
headers["Access-Control-Allow-Headers"] = "Authorization, Content-Type"
|
||||
headers["Access-Control-Expose-Headers"] = "Link"
|
||||
headers["Access-Control-Allow-Methods"] = "GET, POST, HEAD, OPTIONS"
|
||||
headers["Access-Control-Max-Age"] = "3600"
|
||||
|
||||
|
||||
_TILDE_ENCODING_SAFE = frozenset(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue