• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Hi to all. I'll keep it short.

I make an ajax post request with CSRF on. Because i use the form_open() i can read the coockie. So far so good. Then i pass the token via ajax (using jquery) to the controller.

So what i need to do next in the controller in order to succeed the ajax call?

I just found it. I have to set the name of the token within the javascript and in the controller same as it is in the config.php file.

There's more on this in the Core forum:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.