Support for X-Forwarded-Prefix in ServletUriComponentsBuilder [SPR-12500] #17105
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
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:
The text was updated successfully, but these errors were encountered: