在$http请求中设置withCredentials属性为true
示例代码:
$http({ url: 'api/endpoint', method: 'GET', withCredentials: true });
上一篇:Angular不断调用函数来更新样式
下一篇:Angular不发送HTTP Only Cookie