From fcaac9cc417f1ae2b91c4e3d211219f40f27d994 Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 17 Dec 2024 00:27:07 +0300 Subject: [PATCH] mapfix --- nginx.conf.sigil | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 9c0266ae..57aa9989 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -6,7 +6,7 @@ {{ $cors_headers_get := "if ($request_method = 'GET') { add_header 'Access-Control-Allow-Origin' '$allow_origin' always; add_header 'Access-Control-Allow-Credentials' 'true' always; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization' always; add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range' always; }" }} map $http_origin $allow_origin { - ~^https?:\/\/((.*\.)?localhost(:\d+)?|(.*\.)?dscrs\.site|testingdiscoursio-git-.*-discoursio\.vercel\.app|(.*\.)?discours\.io|testing\.dscrs\.site)$ $http_origin; + "~^https?://((.*\.)?localhost(:\d+)?|(.*\.)?dscrs\.site|(.*\.)?discours\.io|)$" $http_origin; default ""; }