Access-Control-Allow-Headers: Authorization, Content-Type - refs #1922

This commit is contained in:
Simon Willison 2022-11-30 15:11:16 -08:00
commit f0fadc28dd
3 changed files with 3 additions and 3 deletions

View file

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