您应该像这样传递一个配置对象
$http.post(url, {withCredentials: true, ...})
或旧版本中:
$http({withCredentials: true, ...}).post(...)
上一篇 我应该避免在生产代码中使用net / http / httptest吗?
下一篇 为什么不推荐使用AngularJS $ http成功/错误方法?从v1.6中删除了吗?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号