title: How I can disable csrf token for some controller in Codeigniter
body: <p>In my web application csrf token work fine. But I want to disable that for API call which API call from my android app. I am using another authentication for my API. Please tell me how I can disable csrf token for my all function of the API controller. I tried to add access in my controller as the header but it is not working. Please help me.</p>
  <pre><code>public function __construct() {
      
      header('Access-Control-Allow-Origin: *');
      header('Access-Control-Allow- Methods: POST, GET, PUT, DELETE, OPTIONS');
  }
  </code></pre>