Spring Security - 405 Request Method 'POST' Not Supported

前端 未结 6 1449
执笔经年
执笔经年 2021-01-13 10:31

I have implemented Spring Security to my project, but I am getting status 405 when I try to log in. I have already added csrf token in the form.

6条回答
  •  广开言路
    2021-01-13 11:20

    I started getting the same thing when I added a successForwardUrl and found that the response on sucessful login is a POST to that endpoint or to "/" if not set. Once I enabled POST on the defined endpoint as well as GET all was fine.

提交回复
热议问题