codeigniter CSRF error: “The action you have requested is not allowed.” November 4, 2022 by Tarik The problem solved by this Solution: set $config['cookie_secure'] in config file to FALSE if you’re using HTTP.