mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #26947 -- Added a deployment system check for SECURE_HSTS_PRELOAD.
This commit is contained in:
@@ -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
|
||||
-----
|
||||
|
||||
Reference in New Issue
Block a user