diff --git a/default.conf b/default.conf index 8f6a240..e9642d2 100644 --- a/default.conf +++ b/default.conf @@ -294,7 +294,7 @@ server { proxy_pass https://storage.yandexcloud.net; } - location ~ ^/verification/(.*)$ { + location /verification/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always; add_header Access-Control-Allow-Credentials true always; @@ -306,6 +306,7 @@ server { 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; + add_header Service $uri; proxy_set_header Referer $host; proxy_set_header Origin $http_origin; proxy_set_header Connection ''; @@ -314,7 +315,7 @@ server { proxy_buffering off; proxy_cache off; - proxy_pass http://$apiversion/$2; + proxy_pass http://$apiversion/; } location / {