pass csrf token with ajax request codeigniter code example
Example: codeigniter csrf token ajax
$csrfName = $this->security->get_csrf_token_name();
$csrfHash = $this->security->get_csrf_hash();
$csrfName = $this->security->get_csrf_token_name();
$csrfHash = $this->security->get_csrf_hash();