From eaa52e14ebc2186377337faefe2a2bba383dcabc Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 23 Jan 2021 16:58:50 -0600 Subject: [PATCH] =?UTF-8?q?Revert=20"fix(reverse-proxy):=20=F0=9F=90=9B=20?= =?UTF-8?q?include=20other=20headers=20with=20cors"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7fd0a72e2c6d506643bf0ff96011a9d082f0deb4. --- reverse-proxy/loc-includes/cors.conf | 3 --- 1 file changed, 3 deletions(-) diff --git a/reverse-proxy/loc-includes/cors.conf b/reverse-proxy/loc-includes/cors.conf index 1a3fbc405..84f1c78c8 100644 --- a/reverse-proxy/loc-includes/cors.conf +++ b/reverse-proxy/loc-includes/cors.conf @@ -15,7 +15,6 @@ if ($request_method = 'OPTIONS') { add_header 'Access-Control-Max-Age' 1728000; add_header 'Content-Type' 'text/plain; charset=utf-8'; add_header 'Content-Length' 0; - include ../svr-includes/headers.conf; return 204; } if ($request_method = 'POST') { @@ -23,12 +22,10 @@ if ($request_method = 'POST') { add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - include ../svr-includes/headers.conf; } if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range'; - include ../svr-includes/headers.conf; } \ No newline at end of file