HttpRequest.getURI(). In effect the request URI will reflect the client-originated protocol and address.
Note: This filter can also be used in a
removeOnly mode where "Forwarded" and "X-Forwarded-*"
headers are only eliminated without being used.
|Constructor and Description|
|Modifier and Type||Method and Description|
Process the Web request and (optionally) delegate to the next
Enables mode in which any "Forwarded" or "X-Forwarded-*" headers are removed only and the information in them ignored.
public void setRemoveOnly(boolean removeOnly)
removeOnly- whether to discard and ignore forwarded headers
public reactor.core.publisher.Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain)
WebFilterthrough the given