解决XSS攻击

This commit is contained in:
xxy
2020-05-07 04:21:02 +08:00
parent ca9fd1c2f7
commit 320d693238
4 changed files with 165 additions and 1 deletions

View File

@ -15,4 +15,11 @@ cache:
password: novel@2020117
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接多个用逗号分隔
excludes: /system/notice/*
# 匹配链接 多个用逗号分隔
urlPatterns: /book/addBookComment,/user/addFeedBack