Skip to content

X-Forwarded-Host handling in ServletUriComponentsBuilder does not treat ports correctly [SPR-10718] #15346

Closed
@spring-projects-issues

Description

@spring-projects-issues

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 the X-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:

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: duplicateA duplicate of another issuetype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions