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

Prevent Content-Length and Host headers from being copied by default #3313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkuipers
Copy link
Contributor

This PR introduces an additional property to skip copying certain headers from the incoming request.
Because the use case is different, it's bad to force users to add headers like Host and Content-Length to the list of sensitive headers when they need to override that (e.g. for adding smth like an X-APIKey header), so having a separate configuration setting for this is preferable.

Fixes gh-3154

Also remove the bogus spring.cloud.gateway.proxy.auto-forward setting from the tests.
Fixes spring-cloudgh-3154
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ProxyExchange fails with "IOException: insufficient data written" with boot 3.2
2 participants