[GH-ISSUE #4462] [Feature Request] 希望不要改变X_FORWARDED_PROTO的值 #3527

Closed
opened 2026-05-05 14:16:01 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @DaPoHou on GitHub (Sep 28, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4462

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
Originally created by @DaPoHou on GitHub (Sep 28, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4462 ### 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 - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:16:01 -06:00
Author
Owner

@fatedier commented on GitHub (Oct 9, 2024):

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

<!-- gh-comment-id:2401394600 --> @fatedier commented on GitHub (Oct 9, 2024): 可以使用 `requestHeaders.set` 的配置主动覆盖设置一个值,这部分目前不支持自定义,未来会考虑。
Author
Owner

@DaPoHou commented on GitHub (Oct 9, 2024):

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

<!-- gh-comment-id:2401584699 --> @DaPoHou commented on GitHub (Oct 9, 2024): 是的,目前只能这样。 测试发现0.51.3版本也是正常的,没有修改从公网nginx传来的HTTP_X_FORWARDED_PROTO的值。 是后面某个版本改掉了。
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2024):

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

<!-- gh-comment-id:2448739677 --> @github-actions[bot] commented on GitHub (Oct 31, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3527
No description provided.