[Django]-How would I authenticate and make requests from an iPhone app to a Django backend to get around CSRF?


Just use the csrf_exempt decorator.http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions

And yes, use the POST request type, it’s the only logical choice when you’re sending data to the server. As per RESTful API guidelines: http://en.wikipedia.org/wiki/Representational_State_Transfer#RESTful_web_services


You can solve CSRF Issue. in django 1.4
Just using decoration at front of function.

  def PostData(requst):


http request from the iphone application is not cross-domain

Leave a comment