From b7d8af144b016a587d5ba9fc30840dcd126f38ef Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 16 Jan 2025 18:18:36 +0100 Subject: [PATCH] fix(settings_cof): Origins must have a scheme --- gestioasso/settings_cof.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestioasso/settings_cof.py b/gestioasso/settings_cof.py index cc54dcf1..6bccefc2 100644 --- a/gestioasso/settings_cof.py +++ b/gestioasso/settings_cof.py @@ -204,7 +204,7 @@ CHANNEL_LAYERS = credentials.get_json( ASGI_APPLICATION = "gestioasso.routing.application" CORS_ALLOWED_ORIGINS = credentials.get("CORS_ALLOWED_ORIGINS", []) -CSRF_TRUSTED_ORIGINS = ALLOWED_HOSTS +CSRF_TRUSTED_ORIGINS = [f"https://{host}" for host in ALLOWED_HOSTS] SITE_ID = 1