关于 security 穿了token 反而报403 的问题

某个目录下允许不登录访问
.antMatchers("/activity/index").anonymous()
但是传了token 反而报403

改成
.antMatchers("/activity/index").permitAll()
就可以了

https://www.nuomiphp.com/t/61f38fa86e8778284d5afab9.html


posted @ 2022-04-27 14:32  刘阿泽  阅读(405)  评论(0编辑  收藏  举报