[Answered ]-Cross domain json data rejected in django tastypie

2👍

You will need to set your client and your server to do cross domain ajax.

In jquery, you would do set crossDomain : true in your $.ajax() call
(see http://api.jquery.com/jQuery.ajax/)

On the server side, you will need to set a couple of accept headers
http://enable-cors.org/

You can find out more about cross domain request by looking up the CORS specification:
http://www.w3.org/TR/cors/

Leave a comment