fix(settings_cof): Origins must have a scheme

This commit is contained in:
Tom Hubrecht 2025-01-16 18:18:36 +01:00
parent 35c0f02ec5
commit 9ec07f426c
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -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