Add support for x-forwarded- HttpServletRequest wrapping [SPR-13614] #18192
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Rob Winch opened SPR-13614 and commented
It would be ideal if Spring Framework provided a transparent way to support x-forwarded headers similar to Tomcat's RemoteIpFilter. This would provide an application container independent way of supporting x-forwarded headers.
Admittedly, #14743 added support for this. However, this is not ideal because the framework and users must leverage the newly added APIs explicitly. Furthermore, always interpreting the request using x-forwarded- allows forging the address so users should really opt in for this (i.e. by adding a Filter).
Affects: 4.2.2
Issue Links:
Referenced from: commits 6fcc869, 36e2dd9, 4cf0b59
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: