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

[Feature Request] 希望不要改变X_FORWARDED_PROTO的值 #4462

Open
2 of 11 tasks
DaPoHou opened this issue Sep 28, 2024 · 3 comments
Open
2 of 11 tasks

[Feature Request] 希望不要改变X_FORWARDED_PROTO的值 #4462

DaPoHou opened this issue Sep 28, 2024 · 3 comments

Comments

@DaPoHou
Copy link

DaPoHou commented Sep 28, 2024

Describe the feature request

这两天把frp升级到了0.60(之前一直用的0.36.2),我是使用公网nginx 通过https ---> frp --->内网http服务。很多正常的链接都无法访问,通过排查发现是公网nginx中的HTTP_X_FORWARDED_PROTO原为https,通过frp被修改为了http。
而在之前的版本都是没有被修改的,正常的。
希望新版本不要修改HTTP_X_FORWARDED_PROTO,继续保留公网nginx传输的值。

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
@fatedier
Copy link
Owner

fatedier commented Oct 9, 2024

可以使用 requestHeaders.set 的配置主动覆盖设置一个值,这部分目前不支持自定义,未来会考虑。

@DaPoHou
Copy link
Author

DaPoHou commented Oct 9, 2024

是的,目前只能这样。
测试发现0.51.3版本也是正常的,没有修改从公网nginx传来的HTTP_X_FORWARDED_PROTO的值。
是后面某个版本改掉了。

Copy link

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

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

No branches or pull requests

2 participants