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
|
|
@ -912,7 +912,7 @@ def test_cors(
|
|||
response = app_client_with_cors.get(path)
|
||||
assert response.status == status_code
|
||||
assert response.headers["Access-Control-Allow-Origin"] == "*"
|
||||
assert response.headers["Access-Control-Allow-Headers"] == "Authorization"
|
||||
assert response.headers["Access-Control-Allow-Headers"] == "Authorization, Content-Type"
|
||||
assert response.headers["Access-Control-Expose-Headers"] == "Link"
|
||||
assert (
|
||||
response.headers["Access-Control-Allow-Methods"] == "GET, POST, HEAD, OPTIONS"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue