From 7f8d52b24e0ffd88e3405e73e65d1abbba1646a0 Mon Sep 17 00:00:00 2001 From: Kenan Erdogan Date: Thu, 13 Feb 2020 16:45:59 +0100 Subject: [PATCH] allow OPTIONS method, for: https://github.com/jupyterhub/mybinder.org-deploy/issues/1344 --- load_balancer/sites-available/gesis_mybinder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/load_balancer/sites-available/gesis_mybinder b/load_balancer/sites-available/gesis_mybinder index 53555891..973ef8f9 100644 --- a/load_balancer/sites-available/gesis_mybinder +++ b/load_balancer/sites-available/gesis_mybinder @@ -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 @@ -39,7 +39,7 @@ server { } location /build/ { - limit_except GET { + limit_except GET OPTIONS { deny all; } add_header "Access-Control-Allow-Origin" *;