The Action you have requested is not allowed- Error in codeigniter

By | May 28, 2015

One chance of getting this error is,

in config folder-config.php csrf_protection as true and missed the token usage in form submission.

$config[‘csrf_protection’] = TRUE;

Please make the above variable to False and try it will work

  • We shouldn’t encourage disabling csrf_protection!!

    If it happens in AJAX calls, need to send the CSRF value & name with AJAX calls.