diff --git a/TWB/settings.py b/TWB/settings.py index 501f6c5..f77f3e4 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -15,6 +15,8 @@ from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent +SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') +CSRF_TRUSTED_ORIGINS = ['https://tripwb.com'] # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/