Code

Ticket #6247: 6247.diff

File 6247.diff, 812 bytes (added by arien, 6 years ago)
Line 
1Index: docs/middleware.txt
2===================================================================
3--- docs/middleware.txt (revision 6962)
4+++ docs/middleware.txt (working copy)
5@@ -154,6 +154,17 @@
6 
7 .. _Authentication in Web requests: ../authentication/#authentication-in-web-requests
8 
9+django.contrib.csrf.middleware.CsrfMiddleware
10+---------------------------------------------
11+
12+**New in Django development version**
13+
14+Adds protection against Cross Site Request Forgeries by adding hidden form
15+fields to POST forms and checking requests for the correct value. See the
16+`Cross Site Request Forgery protection documentation`_.
17+
18+.. _`Cross Site Request Forgery protection documentation`: ../csrf/
19+
20 django.middleware.transaction.TransactionMiddleware
21 ---------------------------------------------------
22