grails-spring-security-core icon indicating copy to clipboard operation
grails-spring-security-core copied to clipboard

Feature Request: Support for Spring CSRF filter

Open edwardotis opened this issue 8 years ago • 1 comments

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

edwardotis avatar Jun 26 '16 14:06 edwardotis

As a work around until/if it gets implemented you could try something like what enzo did on this question.

lifeweaver avatar May 16 '17 15:05 lifeweaver