From 427d89e8db16b543cb8254640b80b414c9536a7a Mon Sep 17 00:00:00 2001
From: Bjarke Madsen <bjarke@nordu.net>
Date: Thu, 22 Jun 2023 15:41:18 +0200
Subject: [PATCH] use SESSION_COOKIE_SECURE

---
 compendium_v2/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compendium_v2/__init__.py b/compendium_v2/__init__.py
index 1a41ef96..7fa85481 100644
--- a/compendium_v2/__init__.py
+++ b/compendium_v2/__init__.py
@@ -39,6 +39,7 @@ def _create_app(app_config) -> Flask:
 
     app.config['CONFIG_PARAMS'] = app_config
     app.config['SECRET_KEY'] = app_config['SECRET_KEY']
+    app.config['SESSION_COOKIE_SECURE'] = True
     if 'oidc' not in app_config:
         app.config['LOGIN_DISABLED'] = True
         logger.info('No OIDC configuration found, authentication disabled')
-- 
GitLab