Syntax
ruleMatching:
maxXForwardedForHeaders: <int>
xForwardedForEnabled: <boolean>ruleMatching: maxXForwardedForHeaders: <int> xForwardedForEnabled: <boolean>
Sample
<beans>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
</beans>
<beans>
<transport coreThreadPoolSize="20">
<ruleMatching />
<dispatching />
<userFeature />
<httpClient />
</transport>
</beans>
Attributes
| Name | Required | Default | Description | Examples |
|---|---|---|---|---|
| maxXForwardedForHeaders | false | 20 | Maximum number of existing X-Forwarded-For/-Proto/-Host header occurrences allowed on an incoming request before it is rejected as flooded. | - |
| xForwardedForEnabled | false | true | Whether X-Forwarded-For, X-Forwarded-Proto, and X-Forwarded-Host headers are added to requests matched to a service proxy. | - |