MichelleChung
2022-08-13 0936aaccea661743b37ac948b9bfec5093e1f93b
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java
@@ -49,7 +49,7 @@
        String url = request.getServletPath();
        String method = request.getMethod();
        // GET DELETE 不过滤
        if (method == null || method.matches(HttpMethod.GET.name()) || method.matches(HttpMethod.DELETE.name())) {
        if (method == null || HttpMethod.GET.matches(method) || HttpMethod.DELETE.matches(method)) {
            return true;
        }
        return StringUtils.matches(url, excludes);