I believe I am already using an $http interceptor (see below), all of my 
other code uses $resource -

My "auth tool" [angular-jwt] is not dealing with the response at all - it 
only adds the jwt to the outbound requests via an interceptor

I am still incredulous that any headers would be stripped or added at all, 
I imagined that the server attaches them and that's it -- everyone who 
looks for em can read 'em

The only thing I've ever seen was that the Allow-Headers [header] can make 
it impossible to see headers if they are not listed -- but even that one is 
gone!

This has got me flummoxed !!

al;

(echoed from 1st post)

    $provide.factory('responseInterceptor', function() {
      return {
        response: function(resp) {
          console.log('response.config.url',resp.config.url);
          
console.log('response.headers.AuthToken',resp.headers('AuthToken'));
          console.log('response.headers',resp.headers());
          return resp;
        }
      };
    });

    $httpProvider.interceptors.push('responseInterceptor');

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to