X-Forwarded-Host handling in ServletUriComponentsBuilder does not treat ports correctly [SPR-10718] #15346
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Oliver Drotbohm opened SPR-10718 and commented
According to the spec, a
Host
value consists of a uri-host and an optional port. So when inspecting theX-Forwarded-Host
header we have to split uri-host and port and set the values appropriately. Currently the port is still part of the host.This was originally reported against Spring HATEOAS in this ticket.
Affects: 3.2.3
Issue Links:
The text was updated successfully, but these errors were encountered: