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-For Header 浏览器插件,配置x-forwarded-for字段无效 #1010

Closed
luguiqing opened this issue Nov 12, 2023 · 2 comments
Closed

Comments

@luguiqing
Copy link

谷歌插件 X-Forwarded-For Header, 可以修改如下图headers头, 但是x-forwarded-for字段修改无效;

image

请教下两个问题:

  1. 是因为 内置forwardedFor配置,所以才导致该请求头x-forwarded-for无法正常透传吗?
  2. 目前通过 reqScript 的形式来实现该效果,有其他好的推荐方式吗?
# forwardedFor.js
if (headers['x-remote-addr']) {
   rules.push('* forwardedFor://' + headers['x-remote-addr'])
}
@avwo
Copy link
Owner

avwo commented Nov 13, 2023

两者不要混用

@luguiqing
Copy link
Author

好的,谢谢

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

No branches or pull requests

2 participants