Update site.py

pull/653/head
Mr Chen 5 months ago
parent 8b391f03c2
commit 27fd93f590
  1. 13
      web/utils/site.py

@ -1555,13 +1555,12 @@ location ^~ {from} {\n \
}\n\ }\n\
" "
tpl_proxy_cors = "\n\ tpl_proxy_cors = "\n\
add_header Access-Control-Allow-Origin *;\ add_header Access-Control-Allow-Origin *;\n\
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';\ 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';\ 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 X-Cache $upstream_cache_status;\ if ($request_method = 'OPTIONS') {\n\
if ($request_method = 'OPTIONS') {\ return 204;\n\
return 204;\ }\n\
}\
" "
# replace # replace

Loading…
Cancel
Save