fix(csrf): stateless HMAC token to survive page cache
This commit is contained in:
@@ -102,6 +102,13 @@ if (!defined('ENABLE_USER_ACCOUNTS')) define('ENABLE_USER_ACCOUNTS', false);
|
||||
if (!defined('CACHE_ENABLED')) define('CACHE_ENABLED', true);
|
||||
if (!defined('CACHE_DURATION')) define('CACHE_DURATION', 3600); // En secondes (1 heure)
|
||||
|
||||
// Clé secrète utilisée pour signer les tokens CSRF stateless.
|
||||
// À remplacer impérativement dans config.local.php par une valeur aléatoire
|
||||
// propre à l'instance (ex. bin2hex(random_bytes(32))).
|
||||
if (!defined('CSRF_SECRET')) {
|
||||
define('CSRF_SECRET', 'change-me-in-config-local-php');
|
||||
}
|
||||
|
||||
// =========================================
|
||||
// Configuration de la section Hero (bannière d'accueil)
|
||||
// =========================================
|
||||
|
||||
Reference in New Issue
Block a user