summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdnan Umer <u.adnan@outlook.com>2019-08-05 17:23:50 +0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-08-05 18:44:08 +0200
commitc5075360c50b6e681fb3e7d58e6e93ae96662f49 (patch)
tree21b2af141e849adfd30dd381ef3ce13965825486 /docs
parent05964b2198e53a8d66e34d83d9123e3051720b28 (diff)
Fixed #30680 -- Removed obsolete system check for SECURE_BROWSER_XSS_FILTER setting.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt3
-rw-r--r--docs/ref/settings.txt4
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index b1f9e085b4..99f4e1d316 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -369,7 +369,8 @@ The following checks are run if you use the :option:`check --deploy` option:
set to ``True``, so your pages will not be served with an
``'X-XSS-Protection: 1; mode=block'`` header. You should consider enabling
this header to activate the browser's XSS filtering and help prevent XSS
- attacks.
+ attacks. *This check is removed in Django 3.0 as the ``X-XSS-Protection``
+ header is no longer honored by modern browsers.*
* **security.W008**: Your :setting:`SECURE_SSL_REDIRECT` setting is not set to
``True``. Unless your site should be available over both SSL and non-SSL
connections, you may want to either set this setting to ``True`` or configure
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 6aed2f862f..1c845b0df1 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -2182,6 +2182,10 @@ Default: ``False``
If ``True``, the :class:`~django.middleware.security.SecurityMiddleware` sets
the :ref:`x-xss-protection` header on all responses that do not already have it.
+Modern browsers don't honor ``X-XSS-Protection`` HTTP header anymore. Although
+the setting offers little practical benefit, you may still want to set the
+header if you support older browsers.
+
.. setting:: SECURE_CONTENT_TYPE_NOSNIFF
``SECURE_CONTENT_TYPE_NOSNIFF``