Home » Tag Archives: codeigniter csrf token

Tag Archives: codeigniter csrf token

csrf exception url codeigniter

Add the following line to application/config/config.php file.   $config['csrf_exclude_uris'] = array('controller 1','controller 2','controller3/method 1','controller3/method 2');   system/core/Security.php Modify the public function csrf_verify() function in¬†Security.php public function csrf_verify() { // If it's not a POST request we will set the CSRF cookie if (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST') { return $this->csrf_set_cookie(); } // this IF statement is the fix // Check if URI ...

Read More »