Implemented Spring Security CSRF for the login form and Ajax PUT/POST requests.