EllisLab text mark
Advanced Search
     
Disable CSRF Protection for One Action
Posted: 25 September 2011 10:03 AM
Avatar
Joined: 2008-09-07
119 posts

Has anyone successfully disabled the CSRF protection in only a single controller action? I need to allow a POST request from a script but I do not want to disable it for the entire site.

Thanks in advance.

 Signature 

Branson Web Design
Branson Real Estate

 
Posted: 25 September 2011 09:39 PM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-12-04
515 posts

This is now in the develop branch and will be available in the next release. If you need it sooner view the changes here:
https://github.com/EllisLab/CodeIgniter/pull/236

 Signature 

————————
Eric Barnes | Twitter
————————