permit all requests and csfr spring boot security code example Example: http.csrf().disable(); http.csrf().disable();