spring security 403 error

前端 未结 4 1566
清歌不尽
清歌不尽 2020-12-07 22:38

I\'m trying to secure my website using Spring security following the guides on the web. So on my server side the WebSecurityConfigurerAdapter and controller looks like this<

4条回答
  •  不知归路
    2020-12-07 23:22

    I've been looking for days too! Simply disabling CSRF on your configure method with http.csrf().disable(); is all that needed to be done for my put requests to stop receiving 403.

提交回复
热议问题