Skip to content

Commit

Permalink
Fix a typo in the Access-Control-Allow-Methods header
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah256 committed Jul 24, 2019
1 parent f2b80fb commit 5866134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion estuary/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def insert_headers(response):
if origin and origin in cors_origins:
response.headers['Access-Control-Allow-Origin'] = origin
response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization'
response.headers['Access-Control-Allow-Method'] = 'GET, OPTIONS'
response.headers['Access-Control-Allow-Methods'] = 'GET, OPTIONS'
return response


Expand Down
4 changes: 2 additions & 2 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def test_cors_header(client, origin, header_set):
if header_set:
assert 'Access-Control-Allow-Origin: {}'.format(origin) in str(rv.headers)
assert 'Access-Control-Allow-Headers: Content-Type' in str(rv.headers)
assert 'Access-Control-Allow-Method: GET, OPTIONS' in str(rv.headers)
assert 'Access-Control-Allow-Methods: GET, OPTIONS' in str(rv.headers)
else:
assert 'Access-Control-Allow-Origin' not in str(rv.headers)
assert 'Access-Control-Allow-Headers' not in str(rv.headers)
assert 'Access-Control-Allow-Method' not in str(rv.headers)
assert 'Access-Control-Allow-Methods' not in str(rv.headers)

0 comments on commit 5866134

Please sign in to comment.