mirror of https://github.com/snachodog/mybuddy.git
Use join for CSRF origin config?
This commit is contained in:
parent
b46ee34b12
commit
e577441c85
|
@ -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 = "https://" + RENDER_EXTERNAL_HOSTNAME
|
CSRF_TRUSTED_ORIGINS = "".join(["https://", RENDER_EXTERNAL_HOSTNAME])
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
|
Loading…
Reference in New Issue