summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Rosner <brosner@gmail.com>2011-07-14 19:40:30 +0000
committerBrian Rosner <brosner@gmail.com>2011-07-14 19:40:30 +0000
commit2a1874521e92d569d9daf88567247bfbf0fcfc25 (patch)
tree2f188889fad4401d134c72322ab4c2b5cc6dfef4
parenta925b3780e09986131059b7a12f78e968267e0fa (diff)
[1.3.X] Added a note about the AJAX CSRF example not working on jQuery 1.5
Backport of [16543] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--docs/ref/contrib/csrf.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/contrib/csrf.txt b/docs/ref/contrib/csrf.txt
index 4edccdd398..04ca6d6fda 100644
--- a/docs/ref/contrib/csrf.txt
+++ b/docs/ref/contrib/csrf.txt
@@ -133,6 +133,11 @@ that allow headers to be set on every request. In jQuery, you can use the
}
});
+.. note::
+
+ Due to a bug introduced in jQuery 1.5, the example above will not work
+ correctly on that version. Make sure you are running at least jQuery 1.5.1.
+
Adding this to a javascript file that is included on your site will ensure that
AJAX POST requests that are made via jQuery will not be caught by the CSRF
protection.