ForwardedHeaderFilter should support case insensitive header name [SPR-14372] #18945
Comments
Thibaud Lepretre commented I just created a sample to reproduce (you need |
Thibaud Lepretre commented Quick&Dirty by-pass
|
Rossen Stoyanchev commented The fix was a little more involved. Besides the Filter-level check, there are a couple more places (getting the X-Forwarded-Prefix) and masking the X-Forwarded-* headers. It should be fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thibaud Lepretre opened SPR-14372 and commented
Since
4.3.0.RELEASE
Spring offers a new filterForwardedHeaderFilter
to handleX-Forwarded-*
headers (#18192).However method
shouldNotFilter
is case sensitive comparaisonWhere RFC7230 - 3.2 Header Fields
Regardless
RFC7230
, NGinX configuration likeEven with correct case will be transformed and container will received
x-forwarded-hostname
Affects: 4.3 GA
Reference URL: https://github.com/kakawait/spr-14372
Issue Links:
Referenced from: commits 919f6c9
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: