Update default.conf
This commit is contained in:
parent
054ce1976f
commit
f85a66d428
26
default.conf
26
default.conf
@ -231,6 +231,32 @@ server {
|
|||||||
proxy_pass http://10.8.0.5:1490/;
|
proxy_pass http://10.8.0.5:1490/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /answer/v1.0.0/ {
|
||||||
|
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;
|
||||||
|
|
||||||
|
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,x-sessionkey,device,browser,os,devicetype,response-type always;
|
||||||
|
add_header Access-Control-Expose-Headers x-sessionkey,devicetype 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,x-sessionkey,device,browser,os,devicetype,response-type always;
|
||||||
|
add_header Access-Control-Expose-Headers x-sessionkey,devicetype always;
|
||||||
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||||
|
proxy_pass http://10.8.0.5:1491/;
|
||||||
|
}
|
||||||
|
|
||||||
location /squiz/ {
|
location /squiz/ {
|
||||||
proxy_set_header Referer $host;
|
proxy_set_header Referer $host;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
|
Loading…
Reference in New Issue
Block a user