honor X-Forwarded-Host header for url computation
See original GitHub issueThis issue is similar to #535 in that it deals with X-Forwarded*
headers being inspected during url construction. The X-Forwarded-Host header is extremely useful if you’re behind a reverse proxy and need HATEOAS links to contain the proper host. Otherwise, you’re forced to statically define a crnk.domain-name
which may not always be feasible / desirable.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
X-Forwarded-Host - HTTP - MDN Web Docs
This header is used for debugging, statistics, and generating location-dependent content and by design it exposes privacy sensitive information, ...
Read more >HTTP header | X-Forwarded-Host - GeeksforGeeks
The HTTP X-Forwarded-Host header is a request-type header de-facto standard header. This header is used to identify the original request ...
Read more >Header Description - 华为云
X -Forwarded-Host. Refers to a fact standard used to identify the host request header originally sent by the client. X-Forwarded-For.
Read more >Spring Boot behind a load balancer using the X-Forwarded ...
In this article you'll discover how to make use of the X-Forwarded headers passed from a load balancer to your Spring Boot application, ......
Read more >X-Forwarded-Host - Fastly Developer Hub
Shielding Request Protocol Origin Protocol Client Header Note
No TLS TLS No Added at edge
No No TLS TLS No
No TLS TLS Yes Appended
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
CrbkBoot or CrnkBootConfigurer allows to set a new one
Erik Smith notifications@github.com schrieb am Mi., 23. Okt. 2019, 14:53:
@remmeier I was able to get the desired behavior by using Spring Boot 2.2.0 and providing my own
ServiceUrlProvider
implementation via aCrnkBootConfigurer
I’ll go ahead and close this issue. Thanks for you help!