Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS - refs #1922

This commit is contained in:
Simon Willison 2022-11-30 12:25:12 -08:00
commit 6bfd71f5c6
3 changed files with 4 additions and 0 deletions

View file

@ -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(