mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Refs #26947 -- Added a deployment system check for SECURE_HSTS_PRELOAD.
This commit is contained in:
parent
3c2447dd13
commit
7399fee6c3
4 changed files with 64 additions and 0 deletions
|
@ -596,6 +596,9 @@ The following checks are run if you use the :option:`check --deploy` option:
|
|||
for your site to serve other parts of itself in a frame, you should change
|
||||
it to ``'DENY'``.
|
||||
* **security.W020**: :setting:`ALLOWED_HOSTS` must not be empty in deployment.
|
||||
* **security.W021**: You have not set the
|
||||
:setting:`SECURE_HSTS_PRELOAD` setting to ``True``. Without this, your site
|
||||
cannot be submitted to the browser preload list.
|
||||
|
||||
Sites
|
||||
-----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue