⚠ 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 forum is read-only and soon will be archived. ⚠


Ajax request failure on CSRF protection = TRUE in codeigniter

csrf codeigniter ajax

  • Please log in to reply
3 replies to this topic

#1 Tarun Malviya

Tarun Malviya

    Newbie

  • Members
  • Pip
  • 3 posts

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..



#2 xheradon

xheradon

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

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;


#3 Tarun Malviya

Tarun Malviya

    Newbie

  • Members
  • Pip
  • 3 posts

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...



#4 xheradon

xheradon

    Advanced Member

  • Members
  • PipPipPip
  • 47 posts

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;






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users