fix: csrf

This commit is contained in:
2022-10-14 12:27:19 +03:00
parent 7883b6290f
commit 30e2132527

View File

@ -25,8 +25,8 @@ SECRET_KEY = os.getenv('SECRET', 'django-insecure-c%g@wujt4dco#e%k-!25o3)0%t+wm5
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.getenv('DEBUG', 'False')
ALLOWED_HOSTS = ['*']
CSRF_TRUSTED_ORIGINS = ['*']
ALLOWED_HOSTS = ['*', os.getenv('DOMAIN')]
CSRF_TRUSTED_ORIGINS = ['https://' + os.getenv('DOMAIN', 'localhost')]
# Application definition