spring security .csrf().disable() code example Example: http.csrf().disable(); http.csrf().disable();