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