403 response for POST/PUT/DELETE request in spring boot + spring security application

后端 未结 1 1642
长情又很酷
长情又很酷 2021-01-14 15:36

I am using spring security in my spring boot rest app. Get requests are working fine but POST/PUT/DELETE request are giving \"403 Forbidden\". Below is my code snippet. UI i

相关标签:
1条回答
  • 2021-01-14 16:12

    Disable csrf in config

    http.csrf().disable().cors().and().....
    
    0 讨论(0)
提交回复
热议问题