From 126e75817225bb359d0195635f039058c7d16a56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 3 Jan 2023 20:11:59 +0100 Subject: [PATCH] Add trusted domain for CSRF --- src/web/web/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/web/settings.py b/src/web/web/settings.py index 330a8fb..120fe49 100644 --- a/src/web/web/settings.py +++ b/src/web/web/settings.py @@ -131,3 +131,5 @@ LOGGING = { "handlers": {"console": {"class": "logging.StreamHandler"}}, "root": {"handlers": ["console"], "level": "WARNING"}, } + +CSRF_TRUSTED_ORIGINS = ["https://tracker.kucharczyk.xyz"]