You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After Spring Framework switched to using HttpServerRequest#hostAddress first instead of parsing the "Host" header in spring-projects/spring-framework#28601 in order to ensure forwarded headers take effect.
However, as reported in spring-projects/spring-boot#34395 and discussed under spring-projects/spring-framework#30033, if "X-Forwarded-Host" has host and port, e.g. "localhost:3000" then HttpServerRequest#hostAddress returns a hostString with the port in it. It would be useful to parse that since it can happen.
The text was updated successfully, but these errors were encountered:
After Spring Framework switched to using
HttpServerRequest#hostAddress
first instead of parsing the "Host" header in spring-projects/spring-framework#28601 in order to ensure forwarded headers take effect.However, as reported in spring-projects/spring-boot#34395 and discussed under spring-projects/spring-framework#30033, if "X-Forwarded-Host" has host and port, e.g. "localhost:3000" then
HttpServerRequest#hostAddress
returns ahostString
with the port in it. It would be useful to parse that since it can happen.The text was updated successfully, but these errors were encountered: