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
Error on use X-Forwarded-Prefix and ForwardedHeaderFilter #2622
Comments
Sure. Could you please explain your problem with an example urls, headers etc? |
Once again this spins back. But this filter removes these headers and modifies some values like serverHost and contextPath accordingly. This means that no other code can use x-forwarded-* headers anymore directly. This breaks XForwardPrefixPathAdjuster I made workaround in my code and used
but maybe we should consider more generic solution. |
@rainoko gaaah! thanks for the explanation. Would you mind creating a PR for it since you're more aware of the problem? |
I came across this isue today. What I found out is that in
then if |
yeah it might work without much hazzle. Good catch |
…uest accordingly. So if adjuster not make any changes, request information should be correct already.
hi team, when is this change going in? and also we are using 3.0.0-SNAPSHOT upgrading to spring boot 2.0.9, we are thinking of using 2.1 but because of the above issue, we are not able to. |
Hi
When use X-Forwarded-Prefix (Over a zuul/cloud-gateway proxy) and ForwardedHeaderFilter, what remove the header an put on context path of ServletRequest the json the base path is not updated, the path provider extension is use only on startup, not runtime
Can I do same workaround to solve this problem? or send a PR with a new feature?
The text was updated successfully, but these errors were encountered: