Forbidden appears in spring boot security

using springboot to integrate security access to api interfaces appears

{
"timestamp" : "2019-01-03T03:47:55.465+0000" ,
"status" : 403,
"error" : "Forbidden" ,
"message" : "Forbidden" ,
"path" : "/api/v1/system/role" 
}
May.10,2022

this is because you enable CSRF protection and turn it off. In the configure (HttpSecurity http) method, append http.csrf (). Disable (); turn off CSRF protection.


insufficient permissions is also this error

Menu