From d00bb1cd065a9b219f6f1f116cc840a7d235e5df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Thu, 5 Jan 2023 22:09:35 +0100 Subject: [PATCH] Properly unset CSRF_TRUSTED_ORIGINS --- Dockerfile | 2 +- src/web/web/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a97f523..853e1e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN npm install && \ FROM python:3.10-slim-bullseye -ENV VERSION_NUMBER 0.1.0-41-gf2b08cd +ENV VERSION_NUMBER 0.1.0-42-gbedfbb7 ENV PROD 1 RUN useradd --create-home --uid 1000 timetracker diff --git a/src/web/web/settings.py b/src/web/web/settings.py index f01f0c8..976fe83 100644 --- a/src/web/web/settings.py +++ b/src/web/web/settings.py @@ -137,7 +137,7 @@ LOGGING = { "root": {"handlers": ["console"], "level": "WARNING"}, } -CSRF_TRUSTED_ORIGINS = [""] +CSRF_TRUSTED_ORIGINS = [] if os.environ.get("PROD"): CSRF_TRUSTED_ORIGINS.append(os.environ.get("CSRF_TRUSTED_ORIGINS"))