From 81ae44d17a10994d0ecc3675c0f9971875286669 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sat, 6 Aug 2022 01:10:27 +0200 Subject: [PATCH] Adjust some styles and make session cookie secure only --- clubhaus/clubhaus/settings.py | 2 ++ clubhaus/homepage/templates/homepage/base.html | 2 +- clubhaus/homepage/templates/homepage/index.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/clubhaus/clubhaus/settings.py b/clubhaus/clubhaus/settings.py index f4e6f74..913d1b0 100644 --- a/clubhaus/clubhaus/settings.py +++ b/clubhaus/clubhaus/settings.py @@ -73,6 +73,8 @@ if csrf_origins := os.getenv("CSRF_TRUSTED_ORIGINS"): WSGI_APPLICATION = 'clubhaus.wsgi.application' +SESSION_COOKIE_SECURE = True + # Database # https://docs.djangoproject.com/en/4.0/ref/settings/#databases diff --git a/clubhaus/homepage/templates/homepage/base.html b/clubhaus/homepage/templates/homepage/base.html index 58f3c33..22c8351 100644 --- a/clubhaus/homepage/templates/homepage/base.html +++ b/clubhaus/homepage/templates/homepage/base.html @@ -48,7 +48,7 @@ {% block main %}{% endblock %} -