title: Angular $http request not sending x-access-token
body: <p>I am trying to set up a Token based authentication, everything is working already, besides the <code>$http</code> requests not sendding the <code>x-access-token</code> header.</p>
  
  <p>I is being pushed into the headers like so:</p>
  
  <pre><code>.config(function($httpProvider) {
      $httpProvider.interceptors.push('AuthInterceptor');
  })
  </code></pre>
  
  <p>And here is the <em>AuthInterceptor</em> service function that happens on every request</p>
  
  <pre><code>AuthInterceptorFactory.request = function(config) {
      let token = AuthToken.getToken(); // gets the token from local storage
      if (token) config.headers['x-access-token'] = token;
      return config;
  }
  </code></pre>
  
  <p>This are the headers being send on the request</p>
  
  <pre><code>Accept:*/*
  Accept-Encoding:gzip, deflate, sdch
  Accept-Language:en-US,en;q=0.8,es;q=0.6
  Access-Control-Request-Headers:accept, x-access-token
  Access-Control-Request-Method:GET
  Connection:keep-alive
  Host:localhost:3000
  Origin:http://localhost
  Referer:http://localhost/my-app/index.php
  </code></pre>
  
  <p>It works and sends the <em>x-access-token</em> if I add the token as a param on the request like so (ES6 syntax):</p>
  
  <pre><code>getAllLocutores(){
      let token = this.AuthToken.getToken();
      return this.http({
        method: 'GET',
        url: this.baseUrl,
        params: { token }
      });
  }
  </code></pre>
  
  <p>But I guess that the headers are made so I don't have to send a token as a param on every request that requires it.</p>
  
  <p>The <em>x-access-token</em> is being added to the config.headers but not send on the request.</p>
  
  <p>These are the headers when I send the token as a param</p>
  
  <pre><code>Accept:application/json, text/plain, */*
  Accept-Encoding:gzip, deflate, sdch
  Accept-Language:en-US,en;q=0.8,es;q=0.6
  Cache-Control:max-age=0
  Connection:keep-alive
  Host:localhost:3000
  Origin:http://localhost
  Referer:http://localhost/my-app/index.php
  x-access-token:xxxxxxxxxxxxxxxxxxxx.xxxxxxxxxxx.xxxxxxx
  </code></pre>
  
  <p><em>With a the real token</em></p>