Enable Django security middleware

This commit is contained in:
Ben Sturmfels 2023-04-24 17:16:47 +10:00
parent 2680b25f2c
commit e6533e541d
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -178,6 +178,7 @@ TEMPLATES = [
] ]
MIDDLEWARE = [ MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware", "django.middleware.common.CommonMiddleware",