Update default.conf
This commit is contained in:
parent
d397c74739
commit
f64b32d463
@ -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 / {
|
||||
|
Loading…
Reference in New Issue
Block a user