summaryrefslogtreecommitdiff
path: root/docs/ref/clickjacking.txt
diff options
context:
space:
mode:
authorrowanv <rrvspam@gmail.com>2016-01-24 22:26:11 +0100
committerTim Graham <timograham@gmail.com>2016-02-01 10:42:05 -0500
commita6ef025dfb2a1d1bd23893408eef6d066fb506d9 (patch)
treeb29b3624a20cc65184c743102e0f5f620412105f /docs/ref/clickjacking.txt
parent8bf8d0e0ecc1805480deb94feb4675b09d3b3a95 (diff)
Fixed #26124 -- Added missing code formatting to docs headers.
Diffstat (limited to 'docs/ref/clickjacking.txt')
-rw-r--r--docs/ref/clickjacking.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/clickjacking.txt b/docs/ref/clickjacking.txt
index 5f8f5a21d4..abac81dcd8 100644
--- a/docs/ref/clickjacking.txt
+++ b/docs/ref/clickjacking.txt
@@ -51,8 +51,8 @@ decorators if it is not already present in the response.
How to use it
=============
-Setting X-Frame-Options for all responses
------------------------------------------
+Setting ``X-Frame-Options`` for all responses
+---------------------------------------------
To set the same ``X-Frame-Options`` value for all responses in your site, put
``'django.middleware.clickjacking.XFrameOptionsMiddleware'`` to
@@ -85,8 +85,8 @@ that tells the middleware not to set the header::
return HttpResponse("This page is safe to load in a frame on any site.")
-Setting X-Frame-Options per view
---------------------------------
+Setting ``X-Frame-Options`` per view
+------------------------------------
To set the ``X-Frame-Options`` header on a per view basis, Django provides these
decorators::
@@ -113,8 +113,8 @@ The ``X-Frame-Options`` header will only protect against clickjacking in a
modern browser. Older browsers will quietly ignore the header and need `other
clickjacking prevention techniques`_.
-Browsers that support X-Frame-Options
--------------------------------------
+Browsers that support ``X-Frame-Options``
+-----------------------------------------
* Internet Explorer 8+
* Firefox 3.6.9+