I\'m using Spring Security, and with this config, I am redirected to success url with a POST request :
http.csrf().disable() .exceptionHandling()