Re: "CSRF verification failed" when sending simple GET request using curl
On Wednesday, January 19, 2011 11:07:04 PM UTC, scabbage wrote:
How do I add CSRF token to curl then?
What if I wanna expose my views as web services without providing a
UI, how do I make sure clients (e.g. Ajax, actionscript, etc) can use
it without this CSRF issue?
Thanks.
AJAX requests are automatically CSRF exempt. See:
http://docs.djangoproject.com/en/1.2/ref/contrib/csrf/#ajax
--
DR.
-- You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home