新增CSRF防护功能

This commit is contained in:
RuoYi
2025-04-15 17:01:38 +08:00
parent 922a9a5726
commit d42697cb94
11 changed files with 175 additions and 9 deletions

View File

@@ -149,3 +149,10 @@ xss:
excludes: /system/notice/*
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# 防止csrf攻击
csrf:
# 过滤开关
enabled: true
# 白名单(多个用逗号分隔)
whites: