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..
Ajax request failure on CSRF protection = TRUE in codeigniter
- Single Page
Posted 02 March 2017 - 11:11 AM
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;
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...
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;