Skip to content

Commit 3d06b8d

Browse files
committed
调整默认的允许重定向地址,只允许项目内部跳转
1 parent 1c5e49b commit 3d06b8d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

modules/core/src/main/resources/config/jeesite-core.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ shiro:
510510
#allowReferers: http://127.0.0.1,http://localhost
511511

512512
# 允许重定向的地址,不设置为全部允许,设置this只允许本项目内部跳转,多个用逗号隔开,例如:this,http://*.jeesite.com
513-
#allowRedirects: ~
513+
allowRedirects: this
514514

515515
# 是否在登录后生成新的Session(默认false)
516516
isGenerateNewSessionAfterLogin: false

web-api/src/main/resources/config/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ shiro:
693693
# allowReferers: http://127.0.0.1,http://localhost
694694
#
695695
# # 允许重定向的地址,不设置为全部允许,设置this只允许本项目内部跳转,多个用逗号隔开,例如:this,http://*.jeesite.com
696-
# allowRedirects: ~
696+
# allowRedirects: this
697697
#
698698
# # 是否在登录后生成新的Session(默认false)
699699
# isGenerateNewSessionAfterLogin: false

web/src/main/resources/config/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ shiro:
693693
# allowReferers: http://127.0.0.1,http://localhost
694694
#
695695
# # 允许重定向的地址,不设置为全部允许,设置this只允许本项目内部跳转,多个用逗号隔开,例如:this,http://*.jeesite.com
696-
# allowRedirects: ~
696+
# allowRedirects: this
697697
#
698698
# # 是否在登录后生成新的Session(默认false)
699699
# isGenerateNewSessionAfterLogin: false

0 commit comments

Comments
 (0)