CodeIgniter & CSRF CodeIgniter & CSRF codeigniter codeigniter

CodeIgniter & CSRF


This is not so much of an answer as it is a troubleshooting test too long for a comment. Try this:

$this->output->set_header('Cache-Control: no-store, no-cache, must-revalidate');$this->output->set_content_type('application/json');$this->output->set_output(json_encode($data, JSON_FORCE_OBJECT));$this->output->_display();exit;