Make sure disabling Spring Security's CSRF protection is safe here soluton code example Example: http.csrf().disable(); http.csrf().disable();