Fix missing CSRF settings after django 4.0 update
This commit is contained in:
parent
96c947259d
commit
60852475c7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue