Last active
August 29, 2015 14:09
-
-
Save maranemil/2671a143d951c410528a to your computer and use it in GitHub Desktop.
SugarCRM 6.5 allow access to specific pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// avoids the Cross-site forgery attack blocker | |
$sugar_config['http_referer']['list'][] = 'localhost'; | |
$sugar_config['http_referer']['actions'] = array( 'index', 'ListView', 'DetailView', 'EditView', 'Authenticate', 'Login' ); | |
// or | |
$sugar_config['http_referer']['list']['0'] = 'localhost'; | |
$sugar_config['http_referer']['actions']['0'] = 'index'; | |
$sugar_config['http_referer']['actions']['1'] = 'ListView'; | |
$sugar_config['http_referer']['actions']['2'] = 'DetailView'; | |
$sugar_config['http_referer']['actions']['3'] = 'EditView'; | |
$sugar_config['http_referer']['actions']['4'] = 'oauth'; | |
$sugar_config['http_referer']['actions']['5'] = 'authorize'; | |
$sugar_config['http_referer']['actions']['6'] = 'Authenticate'; | |
$sugar_config['http_referer']['actions']['7'] = 'Login'; | |
$sugar_config['http_referer']['actions']['10'] = 'repair'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment