Skip to content

Commit

Permalink
Merge pull request #654 from midoks/dev
Browse files Browse the repository at this point in the history
代理优化2
  • Loading branch information
midoks authored Dec 19, 2024
2 parents 0f6cf01 + 1dd78c3 commit 0602fb5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/utils/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -1559,8 +1559,8 @@ def setProxy(self, site_name, site_from, to, host, name, open_proxy, open_cors,
"
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\
Expand Down
2 changes: 1 addition & 1 deletion web/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 应用程序版本号组件
APP_RELEASE = 0
APP_REVISION = 18
APP_SMALL_VERSION = 0.1
APP_SMALL_VERSION = 0

# 应用程序版本后缀,例如“beta1”、“dev”。通常为空字符串GA发布
APP_SUFFIX = ''
Expand Down

0 comments on commit 0602fb5

Please sign in to comment.