|
@@ -58,8 +58,8 @@ class ShiroConfig {
|
|
|
fun shiroFilter(): ShiroFilterFactoryBean {
|
|
|
return ShiroFilterFactoryBean().apply {
|
|
|
securityManager = securityManager()
|
|
|
-// loginUrl = "/login"
|
|
|
-// unauthorizedUrl = "/unauthor"
|
|
|
+ // loginUrl = "/login"
|
|
|
+ // unauthorizedUrl = "/unauthor"
|
|
|
|
|
|
filters = hashMapOf<String, Filter>(
|
|
|
"canon" to ZenCorsAnonymousFilter(),
|
|
@@ -85,7 +85,7 @@ class ShiroConfig {
|
|
|
filterChainDefinitionMap = linkedMapOf<String, String>( // BUG 此处一定要使用 linkedHashMap 否则顺序有问题
|
|
|
"/auth/setcookie" to "canon", // 设置cookie
|
|
|
"/auth/check" to "canon", // 检查登录状态
|
|
|
-// "/auth/logout" to "logout", // 登出
|
|
|
+ "/auth/logout" to "logout", // 登出
|
|
|
"/test/**" to "canon", // 测试 免登录
|
|
|
"/upload/**" to "canon", // 上传免登录
|
|
|
"/api/**" to "canon", // api 免登陆
|