mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update site.py
This commit is contained in:
+1
-1
@@ -1559,8 +1559,8 @@ 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-Headers *;\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 '*';\n\
|
|
||||||
if ($request_method = 'OPTIONS') {\n\
|
if ($request_method = 'OPTIONS') {\n\
|
||||||
return 204;\n\
|
return 204;\n\
|
||||||
}\n\
|
}\n\
|
||||||
|
|||||||
Reference in New Issue
Block a user