Spring MVC PUT Request returns 405 Method Not Allowed

前端 未结 6 1995
庸人自扰
庸人自扰 2020-12-19 02:27

I am using spring mvc to set up a rest api and most of the configurations are set up automatically through the spring boot project. On the front end I am using angularjs and

6条回答
  •  庸人自扰
    2020-12-19 02:40

    Have a look at the logs (with security at DEBUG) and you will discover the problem. Most likely you haven't disabled csrf protection and you client isn't sending the csrf token. (Standard Spring Security, not Spring Boot, although if you are using the Boot security autoconfig you can switch off csrf with an external config setting.)

提交回复
热议问题