Add option to set CSRF_TRUSTED_ORIGINS (Django 4.0)

This commit is contained in:
R. Miles McCain
2022-09-14 11:04:47 -07:00
parent e08c6e790b
commit e7fef3b2f8
2 changed files with 3 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ SECRET_KEY = os.getenv("DJANGO_SECRET_KEY", "onlyusethisindev")
DEBUG = os.getenv("DEBUG", "False") == "True"
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "*").split(",")
CSRF_TRUSTED_ORIGINS = os.getenv("CSRF_TRUSTED_ORIGINS", "*").split(",")
# Application definition