|
@@ -42,6 +42,10 @@ public class XssFilter implements GlobalFilter, Ordered
|
|
|
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain)
|
|
|
{
|
|
|
ServerHttpRequest request = exchange.getRequest();
|
|
|
+
|
|
|
+ if(!xss.getEnabled()){
|
|
|
+ return chain.filter(exchange);
|
|
|
+ }
|
|
|
|
|
|
HttpMethod method = request.getMethod();
|
|
|
if (method == null || method == HttpMethod.GET || method == HttpMethod.DELETE)
|