Skip to content

Commit

Permalink
Removing request method requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 19, 2023
1 parent d2cd7d3 commit 5677989
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
proxy_set_header Authorization '';
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_hide_header Access-Control-Request-Method;
proxy_set_header Access-Control-Request-Method GET;
proxy_hide_header x-amz-id-2;
proxy_hide_header x-amz-request-id;
proxy_intercept_errors on;
proxy_pass http://iiif-website.s3-website-us-east-1.amazonaws.com;
proxy_hide_header 'Access-Control-Allow-Origin';
proxy_hide_header 'Access-Control-Allow-Origin';
3 changes: 1 addition & 2 deletions tests/TestCORS.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def test_options_cors(self):
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"Connection": "keep-alive",
"User-Agent": "HTTPie/3.2.1",
"Access-Control-Request-Method": "GET"
"User-Agent": "HTTPie/3.2.1"
}

response = requests.options(url, allow_redirects=False, headers=headers)
Expand Down

0 comments on commit 5677989

Please sign in to comment.