samedi 3 janvier 2015

How can I use protected Tastypie resources within Angular?


I have a working Django 1.7 project with an API (Tastypie) made available for mobile clients (ApiKeyAuthentication).


I am using Angular with Chart.js, and so I need to GET some queryset using $http.get. But then I have to provide an API key through headers.


What is the best approach to use Tastypie URLs within Angular with no authentication being required ?





Aucun commentaire:

Enregistrer un commentaire