I'm facing an issue where I am trying to retrieve a custom header sent from the server in my $http response interceptor. However, the only header that is accessible is the Content-type header. How can I troubleshoot this problem?
Here is part of my $http interceptor code:
response: function (response) {
var AuthToken = response.headers('AuthToken');
return response || $q.when(response);
},
The variable AuthToken is currently returning as undefined.