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