⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Add, edit buttons not working when enabling CodeIgniter CSRF



jrierab

jrierab
  • profile picture
  • Member

Posted 25 March 2015 - 17:15 PM

When enabling CodeIgniter's internal CSRF protection with:

$config['csrf_protection'] = TRUE;

in config/config.php, then GC auto-generated action buttons (edit, view) and links (add) does not work anymore.

 

It seems that the CSRF token is not passed along in the Ajax calls (confirmed with Firebug). It is possible to use this feature with GC? 

 

BTW I'm using GC 1.5.0 and CI 2.2.0.