|
@@ -67,10 +67,15 @@ This middleware is enabled in the settings file generated by
|
|
|
:djadmin:`startproject`.
|
|
|
|
|
|
By default, the middleware will set the ``X-Frame-Options`` header to
|
|
|
-``SAMEORIGIN`` for every outgoing ``HttpResponse``. If you want ``DENY``
|
|
|
-instead, set the :setting:`X_FRAME_OPTIONS` setting::
|
|
|
+``DENY`` for every outgoing ``HttpResponse``. If you want any other value for
|
|
|
+this header instead, set the :setting:`X_FRAME_OPTIONS` setting::
|
|
|
|
|
|
- X_FRAME_OPTIONS = 'DENY'
|
|
|
+ X_FRAME_OPTIONS = 'SAMEORIGIN'
|
|
|
+
|
|
|
+.. versionchanged:: 3.0
|
|
|
+
|
|
|
+ The default value of the :setting:`X_FRAME_OPTIONS` setting was changed
|
|
|
+ from ``SAMEORIGIN`` to ``DENY``.
|
|
|
|
|
|
When using the middleware there may be some views where you do **not** want the
|
|
|
``X-Frame-Options`` header set. For those cases, you can use a view decorator
|
|
@@ -116,6 +121,7 @@ Browsers that support ``X-Frame-Options``
|
|
|
-----------------------------------------
|
|
|
|
|
|
* Internet Explorer 8+
|
|
|
+* Edge
|
|
|
* Firefox 3.6.9+
|
|
|
* Opera 10.5+
|
|
|
* Safari 4+
|