我的角度应用和Rails后端配置为处理cors请求,并且" get"," post"请求工作正常,但删除没有。我有一个资源调用Follows,当调用Follow.delete({store_id:2,id:1})时,它发出两个请求,首先是OPTIONS请求,然后是删除请求。任何想法?
.factory('Follow', ['$resource',
function($resource){
return $resource("/follows/:id.json", {
id: "@id",
followable_id: "followable_id",
store_id: "@store_id",
user_id: "@user_id",
clearence: 1
});
}])