title: Angular: $http requests gives -1 status
body: <p>A node.js server gives "This is a string". (writeHeader, write( string), end). </p>
  
  <p>When performing a $http request, I see that the node.js server is responding and sending the information back. </p>
  
  <p>In Angular I perform the following request: </p>
  
  <pre><code>angular.module('phoneList').
    component('phoneList', {
    templateUrl: 'phone-list/phone-list.template.html',
    controller: function PhoneListController($http) {
      var self = this;
      $http.get('http://127.0.0.1:8081/echo').then(function(response) {
        self.data = response.data;
      }, function(err) {
        self.error = err;
        self.status = response.status;
        self.statusText = response.statusText;
    }); 
   }
  });
  </code></pre>
  
  <p><strong>Response</strong></p>
  
  <blockquote>
    <p>{"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"url":"<a href="http://127.0.0.1:8081/echo" rel="noreferrer">http://127.0.0.1:8081/echo</a>","headers":{"Accept":"application/json,
    text/plain, <em>/</em>"}},"statusText":""}</p>
  </blockquote>
  
  <p>I tried both just sending JSON from node.js or HTML-text. No difference. </p>