From e577441c857a6090c9dcde8152c820a64f1cc683 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sun, 22 May 2022 14:31:00 -0700 Subject: [PATCH] Use join for CSRF origin config? --- babybuddy/settings/render.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babybuddy/settings/render.py b/babybuddy/settings/render.py index 848f9864..36e9c176 100644 --- a/babybuddy/settings/render.py +++ b/babybuddy/settings/render.py @@ -5,7 +5,7 @@ from .base import * RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME') if RENDER_EXTERNAL_HOSTNAME: ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME) - CSRF_TRUSTED_ORIGINS = "https://" + RENDER_EXTERNAL_HOSTNAME + CSRF_TRUSTED_ORIGINS = "".join(["https://", RENDER_EXTERNAL_HOSTNAME]) # Database