Wednesday, July 28, 2010

Re: HTTP POST sent from app to Django Server returns 403 Forbidden

If it is a CSRF issue, then perhaps using this setting will help you
get to the bottom of what's going on:
http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#rejected-requests

As it says there, a 403 may be due to a lack of the {% csrf_token %}
in the form that is being posted.
Steven.

--
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.

No comments:

Post a Comment