|
|
@ -1560,7 +1560,7 @@ location ^~ {from} {\n\ |
|
|
|
tpl_proxy_cors = "\n\ |
|
|
|
tpl_proxy_cors = "\n\ |
|
|
|
add_header Access-Control-Allow-Origin *;\n\ |
|
|
|
add_header Access-Control-Allow-Origin *;\n\ |
|
|
|
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';\n\ |
|
|
|
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';\n\ |
|
|
|
add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';\n\ |
|
|
|
add_header Access-Control-Allow-Headers '*';\n\ |
|
|
|
if ($request_method = 'OPTIONS') {\n\ |
|
|
|
if ($request_method = 'OPTIONS') {\n\ |
|
|
|
return 204;\n\ |
|
|
|
return 204;\n\ |
|
|
|
}\n\ |
|
|
|
}\n\ |
|
|
|