Implementation of CSRF filter in Grails and Angular with functional tests