Fix missing CSRF settings after django 4.0 update

This commit is contained in:
Gabriel Augendre 2022-02-28 11:18:24 +01:00
parent 96c947259d
commit 60852475c7

View file

@ -24,6 +24,7 @@ env = environ.Env(
"django-insecure-rk#sto!9js$j6=l+z=@g*(h8if!r(%#u(f(=k6n79d^md0b^=&", "django-insecure-rk#sto!9js$j6=l+z=@g*(h8if!r(%#u(f(=k6n79d^md0b^=&",
), ),
ALLOWED_HOSTS=(list, []), ALLOWED_HOSTS=(list, []),
CSRF_TRUSTED_ORIGINS=(list, []),
) )
env_file = os.getenv("ENV_FILE") env_file = os.getenv("ENV_FILE")
if env_file: if env_file:
@ -40,7 +41,7 @@ SECRET_KEY = env("SECRET_KEY")
DEBUG = env("DEBUG") DEBUG = env("DEBUG")
ALLOWED_HOSTS = env("ALLOWED_HOSTS") ALLOWED_HOSTS = env("ALLOWED_HOSTS")
CSRF_TRUSTED_ORIGINS = env("CSRF_TRUSTED_ORIGINS")
# Application definition # Application definition