I have a form in my application, I need to add csrf_protection = TRUE
in my config.php
for security reason. But after adding this my form can not submit and show me an error like this.
An Error Was Encountered
The action you have requested is not allowed.
Can anyone tell me, How to fix this?
Below is CSRF code in my config.php
$config['csrf_protection'] = TRUE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array();