[eluser]predat0r[/eluser]
Here is my code snippet:
- You set in config the CSRF prot. true, and give a name for the cookie (here: csrf_cookie)
- download and insert jquery.cookie.js
- and as you see you send the cookie info too, trough post, and won't get error at least for this.
Code:
...
var cct = $.cookie('csrf_cookie');
$.ajax({
async: false,
type: "POST",
url: base_url + 'admin/ajaxhelp',
data: { id : temp, csrf_test_name : cct },
dataType: "html",
success: function(data) {
...