【发布时间】:2016-12-23 15:06:24
【问题描述】:
我在服务器中设置标题, resp.setHeader("授权", "xxxxxxx"); 并且http响应的标头是可以的。 从 chorm,我得到如下信息: enter image description here 但是从角度 $http 标头函数中,我无法获得我设置的值。 我试图获得价值使用: console.log(response.headers()); console.log(response.headers("授权"));
控制台打印: enter image description here
如何获得价值? tks
【问题讨论】:
标签: angularjs