-
Notifications
You must be signed in to change notification settings - Fork 868
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
All X-Forwarded-* transforms should replace rather than append values, strip values if x-forwarded is disabled. #1070
Comments
) Enables to specify the action for each of X-Forwarded-* transforms and Forwarded one in the configuration. Additionally, sets the default action for these transforms to "set or replace the header". Fixes #1070
Re-opening to track an remaining question: Should |
Design notes: In the default scenario we should add X-Forwarded-* headers (Set/Replace) like we do today, but also Remove the Forwarded header. If someone manually configures X-Forwarded, we should still Remove the Forwarded header. If someone manually configures Forwarded, we should Remove the X-Forwarded headers. If someone in the future wants both then we'll need more input on how they expect them to interact. One future mitigation might be adding a flag to each of these transforms like |
Default action needs to change.
The text was updated successfully, but these errors were encountered: