ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/XssFilter.java
@@ -44,7 +44,7 @@ ServerHttpRequest request = exchange.getRequest(); // GET DELETE 不过滤 HttpMethod method = request.getMethod(); if (method == null || method.matches("GET") || method.matches("DELETE")) if (method == null || method == HttpMethod.GET || method == HttpMethod.DELETE) { return chain.filter(exchange); } @@ -108,7 +108,7 @@ /** * 是否是Json请求 * * @param request * @param exchange HTTP请求 */ public boolean isJsonRequest(ServerWebExchange exchange) {