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

5👍

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

1👍

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

Solution:
  @csrf_exempt
  def PostData(requst):
    pass

-1👍

http request from the iphone application is not cross-domain

Leave a comment