Skip to content

Add support for x-forwarded- HttpServletRequest wrapping [SPR-13614] #18192

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions