From 6c16e66addb78fc1ace09163ea2e7de06e42654f Mon Sep 17 00:00:00 2001 From: RNL Date: Mon, 31 Aug 2026 22:55:23 +1000 Subject: [PATCH] fixed CSRF_TRUSTED_ORIGINS not set when setup --- standalone/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/standalone/settings.py b/standalone/settings.py index 79b4347..b52bf64 100644 --- a/standalone/settings.py +++ b/standalone/settings.py @@ -124,7 +124,9 @@ PRINTER_IP = os.environ.get("PRINTER_IP", "") ACCESS_TOKEN = os.environ.get("ACCESS_TOKEN", "") PRINTER_SERIAL = os.environ.get("PRINTER_SERIAL", "") -CSRF_TRUSTED_ORIGINS = os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",") +CSRF_TRUSTED_ORIGINS = [ + origin for origin in os.environ.get("CSRF_TRUSTED_ORIGINS", "").split(",") if origin +] # Logging LOGGING = {