Correct CSRF trusted origin config

This commit is contained in:
Christopher C. Wells 2022-05-22 14:27:12 -07:00 committed by Christopher Charbonneau Wells
parent 3d0b459849
commit b46ee34b12
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.append(RENDER_EXTERNAL_HOSTNAME)
CSRF_TRUSTED_ORIGINS = "https://" + RENDER_EXTERNAL_HOSTNAME
# Database