Merge pull request #654 from midoks/dev

代理优化2
pull/655/head
Mr Chen 5 months ago committed by GitHub
commit 0602fb5569
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web/utils/site.py
  2. 2
      web/version.py

@ -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 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';\n\
if ($request_method = 'OPTIONS') {\n\
return 204;\n\
}\n\

@ -13,7 +13,7 @@
# 应用程序版本号组件
APP_RELEASE = 0
APP_REVISION = 18
APP_SMALL_VERSION = 0.1
APP_SMALL_VERSION = 0
# 应用程序版本后缀,例如“beta1”、“dev”。通常为空字符串GA发布
APP_SUFFIX = ''

Loading…
Cancel
Save