diff --git a/multi/multi__gatewayfilter_factories.html b/multi/multi__gatewayfilter_factories.html index f330eb7d..79ccfe14 100644 --- a/multi/multi__gatewayfilter_factories.html +++ b/multi/multi__gatewayfilter_factories.html @@ -185,7 +185,9 @@ KeyResolver userKeyResolver() { uri: http://example.org filters: - RemoveResponseHeader=X-Response-Foo
-
This will remove the X-Response-Foo header from the response before it is returned to the gateway client.
The RewritePath GatewayFilter Factory takes a path regexp parameter and a replacement parameter. This uses Java regular expressions for a flexible way to rewrite the request path.
application.yml. +
This will remove the X-Response-Foo header from the response before it is returned to the gateway client.
To remove any kind of sensitive header you should configure this filter for any routes that you may
+want to do so. In addition you can configure this filter once using spring.cloud.gateway.default-filters
+and have it applied to all routes.
The RewritePath GatewayFilter Factory takes a path regexp parameter and a replacement parameter. This uses Java regular expressions for a flexible way to rewrite the request path.
application.yml.
spring: cloud: gateway: @@ -322,4 +324,12 @@ using something like class, String.class, (exchange, s) -> Mono.just(s.toUpperCase()))).uri(uri) .build(); -}