Angular's $http.post doesn't work, nor does its' $http… but jQuerys ajax does. Why?
问题 For some reason this: return jquery.ajax('my url', { crossDomain : true , data : JSON.stringify({"brand": self.current}) , type : 'POST' }).success(function(data){ scope.results = data; }); and/or this: curl -X POST -H "Content-Type: application/json" -d '{"brand":"target"}' myUrl work fine, but this: var req = { method: "POST" , url : "my url" , data : JSON.stringify({"brand": self.current}) }; return $http(req). success(function(data){ scope.results = data; }); fails miserably with "OPTIONS