diff --git a/default.conf b/default.conf index 58f5543..aefa0eb 100644 --- a/default.conf +++ b/default.conf @@ -174,6 +174,24 @@ server { 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 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;