Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
allow OPTIONS method, for: jupyterhub/mybinder.org-deploy#1344
Browse files Browse the repository at this point in the history
  • Loading branch information
bitnik committed Feb 13, 2020
1 parent f657f22 commit 7f8d52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions load_balancer/sites-available/gesis_mybinder
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ server {

location / {
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/301
limit_except GET {
limit_except GET OPTIONS {
deny all;
}
# https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
Expand All @@ -39,7 +39,7 @@ server {
}

location /build/ {
limit_except GET {
limit_except GET OPTIONS {
deny all;
}
add_header "Access-Control-Allow-Origin" *;
Expand Down

0 comments on commit 7f8d52b

Please sign in to comment.