csrf in settings

This commit is contained in:
Administrator 2023-09-23 16:39:13 +03:00
parent 089fe7c7e6
commit b2a41e7a80

View File

@ -18,6 +18,11 @@ BASE_DIR = Path(__file__).resolve().parent.parent
AUTH_USER_MODEL = 'web.CustomUser'
CSRF_TRUSTED_ORIGINS = [
'https://platform.sprinthub.ru',
'https://platform.develop.sprinthub.ru',
]
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.1/howto/deployment/checklist/