I\'m developing a DJANGO + AngularJS application, where the angular part is not being served by django.
I set the angular $httpProvider
as follows:
I had a similar issue and it was embarrassingly my fault.
My mistake:
$.post('/url', data)
Make sure you're using the $http
object!
$http.post('/url', data)
It was very easy to make this mistake since both seem to work equally as well as each other, except former does not look at $http.defaults.headers.common['X-CSRFToken']
, etc.