CSRF_TRUSTED_ORIGINS is a list derp

This commit is contained in:
Christopher C. Wells 2022-05-22 14:34:48 -07:00 committed by Christopher Charbonneau Wells
parent e577441c85
commit 5d16e0ea19
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from .base import *
RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME') RENDER_EXTERNAL_HOSTNAME = os.environ.get('RENDER_EXTERNAL_HOSTNAME')
if RENDER_EXTERNAL_HOSTNAME: if RENDER_EXTERNAL_HOSTNAME:
ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME) ALLOWED_HOSTS.append(RENDER_EXTERNAL_HOSTNAME)
CSRF_TRUSTED_ORIGINS = "".join(["https://", RENDER_EXTERNAL_HOSTNAME]) CSRF_TRUSTED_ORIGINS.append("".join(["https://", RENDER_EXTERNAL_HOSTNAME]))
# Database # Database