Update default.conf
This commit is contained in:
parent
2b627de5f1
commit
c50adfa772
22
default.conf
22
default.conf
@ -106,6 +106,28 @@ server {
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_pass http://10.6.0.23:1488/;
|
||||
}
|
||||
|
||||
location /squizstorer/ {
|
||||
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,authorization always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
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,authorization always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_set_header Referer $host;
|
||||
proxy_set_header Origin $http_origin;
|
||||
proxy_set_header Connection '';
|
||||
proxy_http_version 1.1;
|
||||
chunked_transfer_encoding off;
|
||||
proxy_buffering off;
|
||||
proxy_cache off;
|
||||
proxy_pass http://10.6.0.23:1489/;
|
||||
}
|
||||
|
||||
location /price/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
|
Loading…
Reference in New Issue
Block a user