summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ogcp/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/__init__.py b/ogcp/__init__.py
index b0ef164..0e16630 100644
--- a/ogcp/__init__.py
+++ b/ogcp/__init__.py
@@ -16,6 +16,10 @@ ogcp_cfg_path = 'cfg/ogcp.json'
app = Flask(__name__)
app.config.from_json(ogcp_cfg_path)
+
+if 'SESSION_COOKIE_SAMESITE' not in app.config or not app.config['SESSION_COOKIE_SAMESITE']:
+ app.config['SESSION_COOKIE_SAMESITE'] = 'Lax'
+
app.secret_key = urandom(16)
class NoScopeStatus(logging.Filter):