Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'

前端 未结 11 2487
你的背包
你的背包 2020-12-07 15:38

After configuring Spring Security 3.2, _csrf.token is not bound to a request or a session object.

This is the spring security config:

&l         


        
11条回答
  •  隐瞒了意图╮
    2020-12-07 15:59

    If you will apply security="none" then no csrf token will be generated. The page will not pass through security filter. Use role ANONYMOUS.

    I have not gone in details, but it is working for me.

     
       
       
       
    

提交回复
热议问题