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