diff --git a/admin.conf b/admin.conf index 9867c72..86467f2 100644 --- a/admin.conf +++ b/admin.conf @@ -161,6 +161,24 @@ server { proxy_cache off; proxy_pass https://storage.yandexcloud.net; } + location /pair { + 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 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 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;