Author: lukeplant
Date: 2011-05-09 12:06:49 -0700 (Mon, 09 May 2011)
New Revision: 16190

Modified:
   django/trunk/docs/ref/contrib/csrf.txt
Log:
Mentioned simplification of AJAX example code in CSRF docs.

Refs #15469. Thanks to aaugustin for the suggestion

Modified: django/trunk/docs/ref/contrib/csrf.txt
===================================================================
--- django/trunk/docs/ref/contrib/csrf.txt      2011-05-09 18:27:52 UTC (rev 
16189)
+++ django/trunk/docs/ref/contrib/csrf.txt      2011-05-09 19:06:49 UTC (rev 
16190)
@@ -123,6 +123,11 @@
 AJAX POST requests that are made via jQuery will not be caught by the CSRF
 protection.
 
+The above code could be simplified by using the `jQuery cookie plugin
+<http://plugins.jquery.com/project/Cookie>`_ to replace ``getCookie``, and
+`settings.crossDomain <http://api.jquery.com/jQuery.ajax>`_ in jQuery 1.5 and
+later to replace ``sameOrigin``.
+
 The decorator method
 --------------------
 

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to