I'm working with CI 2.1.4 and HMVC and i have this problem with security class and config files. I have 3 modules with custom config file and default config.php file in app/config folder.
application
config
config.php // Default security config
$config['global_xss_filtering'] = false;
$config['csrf_protection'] = false;
$config['csrf_token_name'] = 'xxx';
$config['csrf_cookie_name'] = 'xxx';
$config['csrf_expire'] = 7200;
modules
module_1
config
config.php // with this config
$config['global_xss_filtering'] = true;
module_2
config
config.php // with this config
$config['global_xss_filtering'] = true;
$config['csrf_protection'] = true;
$config['csrf_token_name'] = 'yyy';
$config['csrf_cookie_name'] = 'yyy';
$config['csrf_expire'] = 7200;
module_3
config
config.php // default config
but doesn't work, the config file is not overwritten by modules config setup