I am using $http
to make an api call which is sending some custom header like X-Foo
. However I can't yet figure out how to read them. Inside the $http({...}).success(function (data, status, headers, config) {...})
function, headers
is a function that should give me a hash of all headers but it only shows the header content-type
. Is there a way to get the response headers ?
Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up
Join them; it only takes a minute:
|
|||||||||||||||||||||
|
The custom headers will be visible in same domain. However, for the crossdomain situation, the server has to send |
|||||||||||||||||||||
|