!202 update ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/XssFilter.java.
Merge pull request !202 from 光速蜗牛/N/Amaster
commit
5fd16ff806
|
@ -44,7 +44,7 @@ public class XssFilter implements GlobalFilter, Ordered
|
||||||
ServerHttpRequest request = exchange.getRequest();
|
ServerHttpRequest request = exchange.getRequest();
|
||||||
// GET DELETE 不过滤
|
// GET DELETE 不过滤
|
||||||
HttpMethod method = request.getMethod();
|
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);
|
return chain.filter(exchange);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue