From 11fff93c41e01ee91ba38458507ee2e61e6252f3 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 5 Jun 2017 23:22:12 +0200 Subject: [PATCH] use secure cookies --- src/bornhack/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bornhack/settings.py b/src/bornhack/settings.py index 0ea9ffdd..3d397aec 100644 --- a/src/bornhack/settings.py +++ b/src/bornhack/settings.py @@ -129,6 +129,9 @@ if DEBUG: 'debug_toolbar.panels.logging.LoggingPanel', 'debug_toolbar.panels.redirects.RedirectsPanel', ] +else: + SESSION_COOKIE_SECURE=True + CSRF_COOKIE_SECURE=True LOGGING = { 'version': 1,