NEW A page can force its value for MAIN_SECURITY_CSRF_WITH_TOKEN
This commit is contained in:
parent
9dd384e243
commit
0aef7e9468
1 changed files with 1 additions and 1 deletions
|
|
@ -1358,7 +1358,7 @@ class Conf extends stdClass
|
|||
// Value 1 makes CSRF check for all POST parameters only
|
||||
// Value 2 makes also CSRF check for GET requests with action = a sensitive requests like action=del, action=remove...
|
||||
// Value 3 makes also CSRF check for all GET requests with a param action or massaction (except some non sensitive values)
|
||||
$this->global->MAIN_SECURITY_CSRF_WITH_TOKEN = 3;
|
||||
$this->global->MAIN_SECURITY_CSRF_WITH_TOKEN = (defined('MAIN_SECURITY_CSRF_WITH_TOKEN') ? constant('MAIN_SECURITY_CSRF_WITH_TOKEN') : 3);
|
||||
// Note: Set MAIN_SECURITY_CSRF_TOKEN_RENEWAL_ON_EACH_CALL=1 to have a renewal of token at each page call instead of each session (not recommended)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue