Update file default.conf
This commit is contained in:
parent
5ca52cc4db
commit
a4f0633e74
19
default.conf
19
default.conf
@ -119,7 +119,7 @@ server {
|
|||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_pass http://10.6.0.31:8006/;
|
proxy_pass http://10.6.0.31:8006/;
|
||||||
}
|
}
|
||||||
location /verification/ {
|
location /verification1 {
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
@ -131,6 +131,23 @@ server {
|
|||||||
add_header Access-Control-Allow-Credentials true always;
|
add_header Access-Control-Allow-Credentials true always;
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization always;
|
add_header Access-Control-Allow-Headers content-type,authorization always;
|
||||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||||
|
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 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;
|
||||||
proxy_set_header Referer $host;
|
proxy_set_header Referer $host;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
proxy_set_header Connection '';
|
proxy_set_header Connection '';
|
||||||
|
Loading…
Reference in New Issue
Block a user