add CSRF_TRUSTED_ORIGINS

This commit is contained in:
Andreas Zweili 2021-12-28 17:45:46 +01:00
parent 0ffa115ebe
commit 641a3a7d31
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ ALLOWED_HOSTS = [
'127.0.0.1',
]
CSRF_TRUSTED_ORIGINS = [
'http://localhost:8080',
]
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')