CSRF_TOKEN_NAME is not defined 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();