fix: CSRF trusted origins

This commit is contained in:
Silver Ghost 2022-10-14 12:21:00 +03:00
parent 4ca0188117
commit 7883b6290f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ SECRET_KEY = os.getenv('SECRET', 'django-insecure-c%g@wujt4dco#e%k-!25o3)0%t+wm5
DEBUG = os.getenv('DEBUG', 'False') DEBUG = os.getenv('DEBUG', 'False')
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
CSRF_TRUSTED_ORIGINS = ['*']
# Application definition # Application definition

View File

@ -5,4 +5,4 @@ bs4==0.0.1
requests==2.28.1 requests==2.28.1
djangorestframework==3.14.0 djangorestframework==3.14.0
whitenoise==6.2.0 whitenoise==6.2.0
psycopg2-binary psycopg2-binary==2.9.4