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 = "/"