From fecd5188b28d2f9542cd96f746f6a31767e37aee Mon Sep 17 00:00:00 2001 From: Blazej Fitrzyk Date: Tue, 10 Dec 2024 19:47:08 +0100 Subject: [PATCH] fix --- vmmanager/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmmanager/settings.py b/vmmanager/settings.py index 48da674..51142d9 100644 --- a/vmmanager/settings.py +++ b/vmmanager/settings.py @@ -31,7 +31,7 @@ ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "127.0.0.1").split(",") CSRF_TRUSTED_ORIGINS = [] -for i in os.getenv("CSRF_TRUSTED_ORIGINS").split(","): +for i in os.getenv("CSRF_TRUSTED_ORIGINS", "127.0.0.1").split(","): CSRF_TRUSTED_ORIGINS.extend(("http://" + i, "https://" + i)) LOGIN_REDIRECT_URL = "/"