mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #30426 -- Changed X_FRAME_OPTIONS setting default to DENY.
This commit is contained in:
committed by
Mariusz Felisiak
parent
5495ea3ae0
commit
05d0eca635
@@ -420,9 +420,8 @@ The following checks are run if you use the :option:`check --deploy` option:
|
||||
* **security.W019**: You have
|
||||
:class:`django.middleware.clickjacking.XFrameOptionsMiddleware` in your
|
||||
:setting:`MIDDLEWARE`, but :setting:`X_FRAME_OPTIONS` is not set to
|
||||
``'DENY'``. The default is ``'SAMEORIGIN'``, but unless there is a good reason
|
||||
for your site to serve other parts of itself in a frame, you should change
|
||||
it to ``'DENY'``.
|
||||
``'DENY'``. Unless there is a good reason 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
|
||||
|
||||
Reference in New Issue
Block a user