From a9fbf0735a213109ef4b02e02ff3e458b6a25929 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 1 Feb 2016 11:54:26 -0500 Subject: [1.9.x] Fixed #26124 -- Added missing code formatting to docs headers. Backport of a6ef025dfb2a1d1bd23893408eef6d066fb506d9 from master --- docs/ref/clickjacking.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'docs/ref/clickjacking.txt') 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+ -- cgit v1.3