Added BREACH protection.

This commit is contained in:
Josh W 2020-02-15 22:38:33 -05:00
parent ccddf6c8bf
commit 50242e4c2e
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@ asgiref>=3.2.3
cffi>=1.13.2 cffi>=1.13.2
dj-database-url>=0.5.0 dj-database-url>=0.5.0
Django>=3.0.2 Django>=3.0.2
django-debreach>=2.0.1
django-dynamic-preferences>=1.8.1 django-dynamic-preferences>=1.8.1
django-inline-actions>=2.3.0 django-inline-actions>=2.3.0
djangorestframework>=3.11.0 djangorestframework>=3.11.0

View file

@ -70,6 +70,7 @@ INSTALLED_APPS = [
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'
MIDDLEWARE = [ MIDDLEWARE = [
'debreach.middleware.RandomCommentMiddleware',
'django.middleware.security.SecurityMiddleware', 'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',