Use join for CSRF origin config?

This commit is contained in:
Christopher C. Wells 2022-05-22 14:31:00 -07:00 committed by Christopher Charbonneau Wells
parent b46ee34b12
commit e577441c85
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')
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