title: Why $http.delete in angularJS does not work?
body: <p>I try use $http.delete with Django and get HTTP 403.
  My JS file below: </p>
  
  <pre><code>   var myApp = angular.module('myApp',['ui.bootstrap']);
  
      myApp.run(function($http) {
          $http.defaults.headers.post['X-CSRFToken'] = $.cookie('csrftoken');
      });
  
  
      myApp.controller('PostsListController', ['$scope','$http',function($scope,$http) {
        $http.get('/api/v1/posts/').success(function (data) {
  
        $scope.posts = data;
  
        });
      $scope.deletePost = function(post) {
                  $http.delete('/api/v1/posts/'+ post.id + '/');
      };
  
      }]);
  </code></pre>
  
  <p>detail from console:</p>
  
  <pre><code>{detail: "CSRF Failed: CSRF token missing or incorrect."}
  detail
  :
  "CSRF Failed: CSRF token missing or incorrect."
  </code></pre>