Home How to implement CSFR security enhancement with existing Grails project
Reply: 1

How to implement CSFR security enhancement with existing Grails project

Madhvendra Thakur
1#
Madhvendra Thakur Published in 2017-11-29 13:56:30Z

How do I implement the CSFR security enhancement in my existing Grails project? I have read that I have to use token in form and modify the query string. I do not think it is best solution because in my project there are a lot of submit forms and many controllers.

Joshua Moore
2#
Joshua Moore Reply to 2017-11-29 20:33:48Z

The fact is you are going to have to change the way you submit forms and add in the token to each of the forms and change your controllers to check the token. If you want CSFR protection you'll have to touch all of those places.

Fortunately Grails offers useToken and withForm to help take care of the implementation for you. You just have to put it in where you want it.

You can read more about this in the documentation.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.325248 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO