Welcome Guest, Not a member yet? Register   Sign In

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:


Theme © iAndrew 2016 - Forum software by © MyBB