add https for the CORS setting

This commit is contained in:
pierre geeraert
2026-06-16 20:58:09 +01:00
parent 17a7e173fe
commit 090eeccf8c
+3
View File
@@ -28,6 +28,9 @@ DEBUG = os.getenv("DEBUG", "False").lower() in ("true", "1", "t")
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",") ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS").split(",")
CSRF_TRUSTED_ORIGINS=[]
for ALLOWED_HOST in os.getenv("ALLOWED_HOSTS").split(","):
CSRF_TRUSTED_ORIGINS.append("https://"+str(ALLOWED_HOST))
# Application definition # Application definition