diff options
| author | Tim Graham <timograham@gmail.com> | 2016-02-01 11:54:26 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-01 11:54:26 -0500 |
| commit | a9fbf0735a213109ef4b02e02ff3e458b6a25929 (patch) | |
| tree | c9ac521f09711d087e1c501b8427bb102d268fed /docs/ref/clickjacking.txt | |
| parent | d7a6086825d4a308955e792f65fdd9b5f714a505 (diff) | |
[1.9.x] Fixed #26124 -- Added missing code formatting to docs headers.
Backport of a6ef025dfb2a1d1bd23893408eef6d066fb506d9 from master
Diffstat (limited to 'docs/ref/clickjacking.txt')
| -rw-r--r-- | docs/ref/clickjacking.txt | 12 |
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+ |
