Welcome Guest, Not a member yet? Register   Sign In
csrf_exclude_uris not work
#1

$config['csrf_protection'] = true;
$config['csrf_token_name'] = 'csrf_token_test';
$config['csrf_cookie_name'] = 'csrf_cookie_test';
$config['csrf_expire'] = 7200;
$config['csrf_regenerate'] = TRUE;
$config['csrf_exclude_uris'] = array('/assistant_dashboard/upload.html');
Confused
I upload file to '/assistant_dashboard/upload.html' but the 'csrf_exclude_uris' not work.
Please show me how to do?
Reply
#2

The URIs should follow the pattern of controller/method and should not begin with a slash. So assuming the controller is assistant_dashboard and the method is upload the setting should be

$config['csrf_exclude_uris'] = array('assistant_dashboard/upload');
Reply




Theme © iAndrew 2016 - Forum software by © MyBB