Skip to content

Support for X-Forwarded-Prefix in ServletUriComponentsBuilder [SPR-12500] #17105

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-12500 and commented

If a proxy strips a prefix from the path before forwarding it might add an X-Forwarded-Prefix header. It's not as common as X-Forwarded-Host (but neither is a standard, just a convention). If the backend has to send a Location header back (for instance) it needs to re-add the prefix to the URL path. It's very similar to what ServletUriComponentsBuilder is already doing, but with an extra path element in the URL.


Affects: 4.1.2

Issue Links:

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