title: Angular $http.get to localhost, always returns 404. 200 in browser
body: <p>I can't create a successful get request in Angular 1.2.13.</p>
  
  <pre><code>  var getProgress = function() {
        var promise = $http({method: 'GET', url: 'http://localhost:8080/project/local/some/getStatus'});
  
        promise.then(function(success) {
          alert(JSON.stringify(success));
        }, function(error) {
          alert(JSON.stringify(error));
        }, function(notify) {
          alert(JSON.stringify(notify));
        });
    };    
  </code></pre>
  
  <p>So I'm trying to receive some JSON from my REST web service. To test the service, I access it from the browsers(IE9,Firefox 27, Chrome 33) works fine in all of them.</p>
  
  <p>The above code using angular however, always prompts me with the error:</p>
  
  <p>*{"data":"","status":404,"config":{"transformRequest":[null],"transformResponse":[null],"method":"GET","url":<code>"http://localhost:8080/project/local/some/getStatus"</code>,"headers":{"Accept":"application/json, text/plain, <em>/</em>"}}}*</p>
  
  <p>Using <strong>wireshark</strong> I check the HTTP request and HTTP response, both calling the web service <strong>from browser and from angular returns 200</strong>, and the desired json object!! Nevertheless angular prompts me with 404. </p>
  
  <p>When I make the get request from Firefox USING ANGULAR and debug using Findbugs, in the console I get HTTP Code 200, nevertheless Angular says 404. Tried debuging angular's code to no avail, can't see anything strange. </p>
  
  <p><strong>The above code works correctly in IE9!</strong></p>
  
  <p>Any suggestions are appreciated.</p>