新增 web.strictMode,提供更严格的数据安全验证

This commit is contained in:
thinkgem
2019-05-05 15:43:52 +08:00
parent 3c92f26684
commit b82217e624
3 changed files with 6 additions and 1 deletions

View File

@@ -459,6 +459,9 @@ web:
# 静态资源路径前缀可做CDN加速优化
staticPrefix: /static
# 严格模式(更严格的数据安全验证)
strictMode: false
# 自定义正则表达式验证(主键、登录名)
validator:
id: '[a-zA-Z0-9_\-/#\u4e00-\u9fa5]{0,64}'