Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

退出登录报404 #775

Open
songwe2017 opened this issue Jan 9, 2024 · 2 comments
Open

退出登录报404 #775

songwe2017 opened this issue Jan 9, 2024 · 2 comments

Comments

@songwe2017
Copy link

点击退出登录的时候访问后台 /logout 返回403,然后它自己重定向到 /login?logout 就报404了,这怎么解决,死活找不到原因
image

image

@songwe2017
Copy link
Author

求大佬帮解答

@songwe2017
Copy link
Author

找到问题了,因为我用了Spring Security,默认的退出登录规则就是推出后重定向到 /login?logou 这个站点,前后分离需要自定义 ·LogoutSuccessHandler· 这个接口返回状态码给前端

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant