Enable X-Forwarded Headers. (#748)

This commit is contained in:
小魏,小魏,我们要去哪里呀
2022-10-18 21:07:36 +08:00
committed by GitHub
parent d7fd71dfb5
commit e2c2e6c7b0
4 changed files with 180 additions and 0 deletions

View File

@@ -842,6 +842,15 @@ For `Request`, you need to implement and define `LoadBalancerFeignRequestTransfo
If multiple transformers are defined, they are applied in the order in which beans are defined.
Alternatively, you can use `LoadBalancerFeignRequestTransformer.DEFAULT_ORDER` to specify the order.
=== X-Forwarded Headers Support
`X-Forwarded-Host` and `X-Forwarded-Proto` support can be enabled by setting following flag:
[source,properties]
----
spring.cloud.loadbalancer.x-forwarded.enabled=true
----
== Configuration properties
To see the list of all Spring Cloud OpenFeign related configuration properties please check link:appendix.html[the Appendix page].