update 同步 ruoyi

This commit is contained in:
疯狂的狮子li
2022-06-15 18:33:17 +08:00
6 changed files with 8 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ public class XssFilter implements GlobalFilter, Ordered {
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);
}
// 非json类型不过滤