-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
request help: How to close X-Forwarded* and X-Real-IP in requests #2777
Comments
@Applenice See https://github.com/apache/apisix/blob/master/doc/plugins/proxy-rewrite.md for details. Just some snippets reference:
|
Sorry, these headers are set explicitly in the nginx.conf template, which always passed to upstream. |
@Applenice Could you introduce your demands why these headers shouldn't be passed? |
We may need to add some notes in document of plugin proxy-rewrite to state that several headers can not be overridden/deleted by proxy-rewrite plugin (if we don't modify the existing features). |
Hi, I think there is a temporary solution. If your apisix version is earlier than or equal to 2.0, you can change your
and reload the apisix. If your apisix is on the master branch, you should do the same things as above on |
X-Forwarded* and X-Real-IP should be configurable, even if enabled by default, and should provide a way to disable it, for the following reasons that I can think of:
|
Thank you for your response, I have tested this method as a temporary solution. |
This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions. |
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time. |
Issue description
I don't want X-Forwarded* and X-Real-IP to appear in APISIX proxy rewrite requests, how do I configure it? I found no relevant information.
Is there a way to add, but not a way to close? I tried to configure proxy protocol in config.yaml, but it didn't work.
#1113
Environment
apisix version
):The text was updated successfully, but these errors were encountered: