j_security_check redirect

梦想与她 提交于 2019-11-30 20:55:04

The behavior of form-based authentication is the following:

  • the browser sends a request to a protected URL
  • the server intercepts its request, sees that you're not authenticated, and redirects to the loginf form page
  • the user logs in
  • the server redirects to the URL that triggered the authentication: the protected URL asked in the first step.

This is good, because it allows a user to bookmark a protected page, come back the next day to this bookmarked page, log in, and go directly to the bookmarked page rather than the welcome page.

My guess is that the landing page is not protected, but its CSS file is. So the request that triggers the authenticationis the request that tries to load the CSS file, which causes the user to be redirected to the CSS file.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!