[url]http://stackoverflow.com/questions/22064288/angularjs-http-response-header[/url]
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.
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.
本文探讨了AngularJS中HTTP响应头的可见性问题,特别是在跨域情况下如何通过设置Access-Control-Expose-Headers来使自定义头部信息可见。
4016

被折叠的 条评论
为什么被折叠?



