Welcome Guest, Not a member yet? Register   Sign In
Another CSFR question
#1

[eluser]keld[/eluser]
Hi,

I've enabled CSFR in my config file and after realizing that all my POST from jqeury stopped working I searched the forum and found this helpful link:
http://ericlbarnes.com/blog/post/codeign..._with_ajax

The only issue is that it is still not working.
If I look at my cookies in firefox I see the csrf_token_myname cookie but there are no csrf_cookie_myname so in jquery when I have:
Code:
...
$.ajax({
            url: base_url+"mycontroller/myfunction",
            data: {widget_id : $(widget).attr('id'), fetch: 1, csrf_token_name: $.cookie("csrf_cookie_mysite")},
            type: "POST",
...
and I do a trace in the console, $.cookie("csrf_cookie_mysite") is equal to null but $.cookie("csrf_token_mysite") contains a random string.
I'm wondering why on Eric Barnes blog he's assigning the cookie to the token and why it is still not working on my site.

Any help is appreciated, thanks!


Messages In This Thread
Another CSFR question - by El Forum - 05-10-2011, 06:01 PM
Another CSFR question - by El Forum - 05-10-2011, 06:50 PM
Another CSFR question - by El Forum - 05-10-2011, 06:59 PM
Another CSFR question - by El Forum - 05-10-2011, 10:44 PM
Another CSFR question - by El Forum - 05-11-2011, 12:17 AM
Another CSFR question - by El Forum - 05-11-2011, 03:19 AM
Another CSFR question - by El Forum - 05-11-2011, 03:25 AM
Another CSFR question - by El Forum - 05-11-2011, 01:51 PM
Another CSFR question - by El Forum - 05-11-2011, 02:06 PM
Another CSFR question - by El Forum - 05-11-2011, 03:02 PM
Another CSFR question - by El Forum - 05-12-2011, 03:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB