⚠ 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

Ajax request failure on CSRF protection = TRUE in codeigniter



Tarun Malviya

Tarun Malviya
  • profile picture
  • Member

Posted 02 March 2017 - 11:11 AM

Ajax request failed on csrf_protection TRUE in codeigniter  grocery crud and if i set  the csrf_regenerate =FALSE again getting failed on delete. please help Thanks in advance..


xheradon

xheradon
  • profile picture
  • Member

Posted 02 March 2017 - 11:18 AM

Which error are you getting? I had the same problem and i solved turning csrf_regenerate to false on config.php

$config['csrf_regenerate'] = false;

Tarun Malviya

Tarun Malviya
  • profile picture
  • Member

Posted 02 March 2017 - 12:43 PM

 

Which error are you getting? I had the same problem and i solved turning csrf_regenerate to false on config.php

$config['csrf_regenerate'] = false;

Actually i want to run the ajax request on csrf_regenerate = TRUE and csrf_protection = TRUE  have you any idea about it Thanks in advance...


xheradon

xheradon
  • profile picture
  • Member

Posted 02 March 2017 - 12:53 PM

I dont know... I switched back "$config['csrf_regenerate'] = false;" to true and it's working now. Dunno why because I had your same problem.

 

Try to set this in application/config/grocery_crud.php

$config['grocery_crud_dialog_forms'] = false;