grails-spring-security-core
grails-spring-security-core copied to clipboard
Feature Request: Support for Spring CSRF filter
I know we can manually use withForm() on each post/put/delete/patch method in every controller, but it would be great to have a Filter option for CSRF to take care of this across the whole app. Spring has this already. http://docs.spring.io/spring-security/site/docs/current/reference/html/csrf.html
So, this is a feature request to integrate Spring's CSRF filter for grails 2 and 3.
Thanks
As a work around until/if it gets implemented you could try something like what enzo did on this question.