Spring security authorize request for url & method using HttpSecurity

前端 未结 3 387
不思量自难忘°
不思量自难忘° 2020-12-28 12:49

Is there any way to authorize post request to a specific url using org.springframework.security.config.annotation.web.builders.HttpSecurity ?

I\'m usin

3条回答
  •  轮回少年
    2020-12-28 13:06

    I know this question is a bit old but I don't believe disabling csrf support is an acceptable answer. I had this same problem but don't feel good able using csrf.disable(). Instead I added the following line at the bottom of the page inside the form tags.

    
    

提交回复
热议问题