Skip to content

Commit b9d7419

Browse files
author
Muhammad Atif
committed
added CSRF_TRUSTED_ORIGINS setting
1 parent 1ac1f57 commit b9d7419

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
DEBUG = os.getenv('DEBUG', default=False)
1212
SECRET_KEY = os.getenv('SECRET_KEY')
1313
ALLOWED_HOSTS = os.getenv('ALLOWED_HOSTS', default='*').split(',')
14+
CSRF_TRUSTED_ORIGINS = os.getenv('CSRF_TRUSTED_ORIGINS', default='https://*.aldryn.io').split(',')
1415

1516
# Use HTTP if SECURE_SSL_REDIRECT is not set or is set to "False".
1617
SECURE_SSL_REDIRECT = os.environ.get('SECURE_SSL_REDIRECT', default="False") != "False"

0 commit comments

Comments
 (0)