We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Chris Pimlott opened SPR-11140 and commented
The support for the X-Forwarded-Host header added in #14743 does not account for having multiple comma-separated hosts in the header, e.g.:
X-Forwarded-Host
X-Forwarded-Host: foo.com, bar.com, baz.com
Test case:
@Test public void testMultiValuedXForwardedHostHeader() { MockHttpServletRequest request = new MockHttpServletRequest(); request.addHeader("X-Forwarded-Host", "a.example.org, b.example.org, c.example.org"); assertEquals("a.example.org", ServletUriComponentsBuilder.fromRequest(request).build().getHost()); }
Affects: 3.2.5
The text was updated successfully, but these errors were encountered:
Chris Pimlott commented
This issue on another project has an example Apache configuration that generates a multi-valued X-Forwarded-Host header:
xp-framework/xp-framework#162
Sorry, something went wrong.
Rossen Stoyanchev commented
This was already working as of 4.0 RC1 as part of changes introducing MvcUriComponentsBuilder. It is now fixed in 3.2.x as well.
rstoyanchev
No branches or pull requests
Chris Pimlott opened SPR-11140 and commented
The support for the
X-Forwarded-Host
header added in #14743 does not account for having multiple comma-separated hosts in the header, e.g.:Test case:
Affects: 3.2.5
The text was updated successfully, but these errors were encountered: