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
X-Foo
The custom headers will be visible in same domain. However, for the crossdomain situation, the server has to send Access-Control-Expose-Headers: X-Foo, ... header to make the custom headers visible.
Access-Control-Expose-Headers: X-Foo, ...