From 0d6e3ba909332ce79af821764340d12a8fefeb80 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 17 Dec 2023 10:23:31 +0000 Subject: [PATCH] Update default.conf --- default.conf | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/default.conf b/default.conf index 55b7ecf..f189b7e 100644 --- a/default.conf +++ b/default.conf @@ -92,21 +92,6 @@ server { proxy_pass http://customer-service-staging:8065/; } - location /squiz/ { - if ($request_method = OPTIONS) { - add_header Access-Control-Allow-Origin $http_origin always; - add_header Access-Control-Allow-Credentials true always; - add_header Access-Control-Allow-Headers content-type,authorization always; - add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; - return 200; - } - add_header Access-Control-Allow-Origin $http_origin always; - add_header Access-Control-Allow-Credentials true always; - add_header Access-Control-Allow-Headers content-type,authorization always; - add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; - proxy_pass http://10.6.0.23:1488/; - } - location /answer/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; @@ -121,6 +106,21 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://10.6.0.23:1490/; } + + location /squiz/ { + if ($request_method = OPTIONS) { + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type,authorization always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + return 200; + } + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Credentials true always; + add_header Access-Control-Allow-Headers content-type,authorization always; + add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + proxy_pass http://10.6.0.23:1488/; + } location /squizstorer/ { if ($request_method = OPTIONS) {