added some security headers to the settings

This commit is contained in:
Gonçalo Valério 2019-03-28 22:43:43 +00:00
parent 04dd2d63cc
commit 8fbc519b18
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,12 @@ if not DEBUG:
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
# Security Headers
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True
X_FRAME_OPTIONS = "DENY"
# Django Channels
ASGI_APPLICATION = "webhook_logger.routing.application"