Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【探讨】应用网关是否新增默认参数X-Forwarded-Proto #591

Closed
barnettZQG opened this issue Dec 17, 2019 · 3 comments
Closed
Labels
New Feature New Feature plan
Milestone

Comments

@barnettZQG
Copy link
Contributor

【需求描述】
应用网关是否新增默认参数:
proxy_set_header X-Forwarded-Proto $scheme;

访问协议对于后端应用是有用的,它有助于业务完成正确的重定向或Cookies安全控制。

@dazuimao1990
Copy link
Contributor

在被discourse的强制https影响登陆这个问题差点搞疯之后,我强烈建议在网关默认添加该配置。

@barnettZQG
Copy link
Contributor Author

相关参数:

  • X-Request-ID
  • X-Real-IP
  • X-Forwarded-For
  • X-Forwarded-Host
  • X-Forwarded-Port
  • X-Forwarded-Proto
  • X-Original-URI
  • X-Scheme

@barnettZQG barnettZQG added this to the v5.2 milestone Feb 4, 2020
@barnettZQG barnettZQG added the New Feature New Feature plan label Feb 4, 2020
barnettZQG pushed a commit that referenced this issue Feb 4, 2020

Verified

This commit was signed with the committer’s verified signature.
crazy-max CrazyMax
@barnettZQG barnettZQG mentioned this issue Feb 7, 2020
16 tasks
@barnettZQG
Copy link
Contributor Author

已于V5.2.0支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Feature New Feature plan
Projects
None yet
Development

No branches or pull requests

2 participants