From 8b743f87efa3b41dba360dc2db490889bee52b15 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 5 Sep 2024 16:57:50 +0000 Subject: [PATCH] Update default.conf --- default.conf | 48 ++---------------------------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/default.conf b/default.conf index aadd801..bc205b9 100644 --- a/default.conf +++ b/default.conf @@ -374,55 +374,15 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main; proxy_set_header Host $host; proxy_pass http://10.8.0.6:8007/; } - location /verification1 { - 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,response-type always; - add_header Access-Control-Allow-Methods GET; - - 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,response-type always; - add_header Access-Control-Allow-Methods GET; - chunked_transfer_encoding off; - proxy_buffering off; - proxy_cache off; - proxy_pass https://storage.yandexcloud.net; - } - location /squizimages { - 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,response-type always; - add_header Access-Control-Allow-Methods GET; - - 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,response-type always; - add_header Access-Control-Allow-Methods GET; - chunked_transfer_encoding off; - proxy_buffering off; - proxy_cache off; - proxy_pass https://storage.yandexcloud.net; - } location /verification/ { - 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,response-type always; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + if ($request_method = OPTIONS) { 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,response-type always; - add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection ''; @@ -434,17 +394,13 @@ access_log syslog:server=10.8.0.7:514,tag=nginx_access main; proxy_pass http://10.8.0.6:7035/; } location /verification/v1.0.0/ { - 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,response-type always; add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; + if ($request_method = OPTIONS) { 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,response-type always; - add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection '';