Spring Boot based application that shows how to configure CSRF. Test page: http://jsfiddle.net/1q25cgar/ TODO: form with an upload field