mirror of https://github.com/snachodog/mybuddy.git
Correct CSRF trusted origin config
This commit is contained in:
parent
3d0b459849
commit
b46ee34b12
|
@ -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.append(RENDER_EXTERNAL_HOSTNAME)
|
CSRF_TRUSTED_ORIGINS = "https://" + RENDER_EXTERNAL_HOSTNAME
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
|
Loading…
Reference in New Issue