How to POST extra parametre on twitter typeahead for CodeIgniter
I've run into the same problem RE: CSRF Protection in codeigniter and running any kind of ajax based function.
I added this function to my main site.js file that is loaded on all of my pages, and therefore gets included in all of my ajax calls:
$.ajaxSetup( data: { csrf_test_name: $.cookie('csrf_cookie_name') } );