new to Angular and javascript. I am using Angular to connect to a service on a different server. I am able to get data just fine, but when I am trying to post, I get a 404. I tried to follow the Angular documentation as closely as possible. What am I doing wrong?
PS. I have sniffed my traffic, and I noticed that my POST hex was completely empty. I am stumped.
EDIT: Heres the error(s) I am getting in the console.
OPTIONS http://url 404 (Not Found) angular.js:7997<br>
OPTIONS http://url Invalid HTTP status code 404 angular.js:7997<br>
XMLHttpRequest cannot load http://url. Invalid HTTP status code 404
app.controller('SendController', ['$scope', 'Request', function($scope, Request) {
$scope.request = {
// test data here
};
$scope.send = function() {
Request.save($scope.request);
};
}]);
app.factory('Request', ['$resource',
function($resource) {
return $resource(url);
}]);