mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #30426 -- Changed default SECURE_CONTENT_TYPE_NOSNIFF to True.
This commit is contained in:
parent
8b4a43dda7
commit
0468159763
4 changed files with 13 additions and 2 deletions
|
@ -2191,12 +2191,16 @@ header if you support older browsers.
|
|||
``SECURE_CONTENT_TYPE_NOSNIFF``
|
||||
-------------------------------
|
||||
|
||||
Default: ``False``
|
||||
Default: ``True``
|
||||
|
||||
If ``True``, the :class:`~django.middleware.security.SecurityMiddleware`
|
||||
sets the :ref:`x-content-type-options` header on all responses that do not
|
||||
already have it.
|
||||
|
||||
.. versionchanged:: 3.0
|
||||
|
||||
In older versions, the default value is ``False``.
|
||||
|
||||
.. setting:: SECURE_HSTS_INCLUDE_SUBDOMAINS
|
||||
|
||||
``SECURE_HSTS_INCLUDE_SUBDOMAINS``
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue