From b28ed3b92fe0288a81b2ae29dcabbc3993ee633e Mon Sep 17 00:00:00 2001 From: Christian Boettcher <c.boettcher@fz-juelich.de> Date: Mon, 14 Mar 2022 13:08:24 +0100 Subject: [PATCH] not required, is somehow handled elsewhere --- proxy_image/default_location | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/proxy_image/default_location b/proxy_image/default_location index ee62b8d..44a3262 100644 --- a/proxy_image/default_location +++ b/proxy_image/default_location @@ -1,12 +1,12 @@ -if ($http_origin ~* (.*\.kfa-juelich.de|.*\.fz-juelich.de|.*\.eflows4hpc.eu)) { - add_header 'Access-Control-Allow-Origin' "$http_origin"; - add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE, PUT'; - add_header 'Access-Control-Allow-Credentials' 'true'; - add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type'; -} -if ($request_method = OPTIONS) { - return 204; -} +#if ($http_origin ~* (.*\.kfa-juelich.de|.*\.fz-juelich.de|.*\.eflows4hpc.eu)) { +# add_header 'Access-Control-Allow-Origin' "$http_origin"; +# add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, DELETE, PUT'; +# add_header 'Access-Control-Allow-Credentials' 'true'; +# add_header 'Access-Control-Allow-Headers' 'User-Agent,Keep-Alive,Content-Type'; +#} +#if ($request_method = OPTIONS) { +# return 204; +#} location ~ \.(html|css|js|ico|jpg|jpeg|png|webp)$ { if ($request_method = OPTIONS) { -- GitLab