mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed docs to refer to HSTS includeSubdomains as a directive.
The spec refers to it as a 'directive' rather than a 'tag': https://tools.ietf.org/html/rfc6797#section-6.1.2
This commit is contained in:
parent
004ba05bca
commit
8c3bc5cd78
3 changed files with 5 additions and 5 deletions
|
@ -255,8 +255,8 @@ so that infrequent visitors will be protected (31536000 seconds, i.e. 1 year,
|
|||
is common).
|
||||
|
||||
Additionally, if you set the :setting:`SECURE_HSTS_INCLUDE_SUBDOMAINS` setting
|
||||
to ``True``, ``SecurityMiddleware`` will add the ``includeSubDomains`` tag to
|
||||
the ``Strict-Transport-Security`` header. This is recommended (assuming all
|
||||
to ``True``, ``SecurityMiddleware`` will add the ``includeSubDomains`` directive
|
||||
to the ``Strict-Transport-Security`` header. This is recommended (assuming all
|
||||
subdomains are served exclusively using HTTPS), otherwise your site may still
|
||||
be vulnerable via an insecure connection to a subdomain.
|
||||
|
||||
|
|
|
@ -2053,7 +2053,7 @@ already have it.
|
|||
Default: ``False``
|
||||
|
||||
If ``True``, the :class:`~django.middleware.security.SecurityMiddleware` adds
|
||||
the ``includeSubDomains`` tag to the :ref:`http-strict-transport-security`
|
||||
the ``includeSubDomains`` directive to the :ref:`http-strict-transport-security`
|
||||
header. It has no effect unless :setting:`SECURE_HSTS_SECONDS` is set to a
|
||||
non-zero value.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue