mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-11-01 18:47:47 +00:00
Fix session cookie attributes
This commit is contained in:
@@ -157,7 +157,7 @@ class ConfigManager:
|
||||
self.config['RATELIMIT_STORAGE_URL'] = f'redis://{self.config["REDIS_ADDRESS"]}/2'
|
||||
|
||||
self.config['SESSION_STORAGE_URL'] = f'redis://{self.config["REDIS_ADDRESS"]}/3'
|
||||
self.config['SESSION_COOKIE_SAMESITE'] = 'Strict'
|
||||
self.config['SESSION_COOKIE_SAMESITE'] = 'Lax' # TODO: enhance security here
|
||||
self.config['SESSION_COOKIE_HTTPONLY'] = True
|
||||
if self.config['SESSION_COOKIE_SECURE'] is None:
|
||||
self.config['SESSION_COOKIE_SECURE'] = self.config['TLS_FLAVOR'] != 'notls'
|
||||
|
||||
Reference in New Issue
Block a user