Commit 5b76a222 authored by 赵啸非's avatar 赵啸非

提交配置校验

parent e19a2332
......@@ -43,6 +43,8 @@ public class SameSiteCookieFilter implements Filter {
String referer = httpRequest.getHeader("Referer");
if(ObjectUtils.isEmpty(referer)) chain.doFilter(request, response);
referer=StrUtil.removeSuffix(referer,"/");
List<String> trustReferers = StrUtil.split(trustedReferer, ",");
if(ObjectUtils.isEmpty(trustReferers)) chain.doFilter(request, response);
......
......@@ -49,4 +49,4 @@ application:
dm:
enable: true
jsonCheck: @profiles.req.json.check@
trustedReferer : http://192.168.0.98:11072/,http://192.168.0.98:11072
\ No newline at end of file
trustedReferer : http://192.168.0.98:11072,http://localhost:8080
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment