CSRF token expires during login

前端 未结 4 2467
挽巷
挽巷 2021-02-01 08:57

I\'m working on Spring web application and I need to avoid problem with expire csrf token on login page, because if user is waiting too long and try to login only one way to res

4条回答
  •  误落风尘
    2021-02-01 09:21

    Another option would be set no timeout for the session by default and then, when the user is authenticated, change the timeout to whatever you want. You can see an example of how to do this here.

提交回复
热议问题