title: x-access-token not intercepting in angular.js
body: <p>When i use chrome extension called POSTMAN to call an api</p>
  
  <pre><code>api.get('/me', function(req, res) {
      res.json(req.decoded);
  });
  
  return api;
  </code></pre>
  
  <p>Using x-access-token as a header with a valid token value, i get a valid respond.</p>
  
  <p>When using interceptor i copied from online tutorial i get this error message:</p>
  
  <blockquote>
    <p><a href="http://localhost:3000/api/me" rel="nofollow">http://localhost:3000/api/me</a> 403 (Forbidden)</p>
  </blockquote>
  
  <p><strong>My API</strong></p>
  
  <pre><code>module.exports = function(app, express) {
  api.use(function(req, res, next) {
      var token = req.body.token || req.param('token') || req.headers['x-access-token'];
  
      if (token) {
          jsonwebtoken.verify(token, secretKey, function(err, decoded) {
              if (err) {
                  res.status(403).send({ sucess: false, message: "Failed to authenticate"});
              } else {
                  req.decoded = decoded;
                  next();
              }
          });
      } else {
          res.status(403).send({ success: false, message: "No Token Provided"});
      }
  });
  
  api.get('/me', function(req, res) {
          res.json(req.decoded);
      });
  
      return api; 
  }
  </code></pre>
  
  <p><strong>My Authentication Service</strong></p>
  
  <pre><code>.factory('Auth', function($http, $q, AuthToken) {
  
      var authFactory = {};
      authFactory.getUser = function() {
          if(AuthToken.getToken())
  
           ///Here it breaks here
  
              return $http.get('/api/me');
          else
              return $q.reject({ message: "User has no fucking token"});
      }
      return authFactory;
  })
  .factory('AuthToken', function($window) {
  var authTokenFactory = {};
  
  authTokenFactory.getToken = function() {
      return $window.localStorage.getItem('token');
  }
  
  authTokenFactory.setToken = function(token) {
      if (token)
          $window.localStorage.setItem('token', token);
      else
          $window.localStorage.removeItem('token');
  }
  
  return authTokenFactory;
  
  })
  .factory('AuthInterceptor', function($q, $location, AuthToken) {
  var interceptorFactory = {};
  
   interceptorFactory.request = function(config) {
      var token = AuthToken.getToken();
  
      if(token) {
          config.header['x-access-token'] = token;
      }
  
      return config;
   };
  
   interceptorFactory.responeError = function(response) {
      if (response.status == 403)
          $location.path('/login');
      return $q.reject(response);
   }
   return interceptorFactory; })
  
  
  
  .factory('Auth', function($http, $q, AuthToken) {
  
  var authFactory = {};
  
  authFactory.getUser = function() {
      if(AuthToken.getToken())
          return $http.get('/api/me');
      else
          return $q.reject({ message: "User has no fucking token"});
  }
  return authFactory; })
  </code></pre>