2***@qq.com
2***@qq.com
  • 发布:2023-05-29 20:23
  • 更新:2023-05-29 20:23
  • 阅读:91

【报Bug】uni.request在h5端success回调的cookies数组总是为空(小程序端cookies不为空)

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: win10

浏览器平台: Chrome

浏览器版本: 113

项目创建方式: CLI

CLI版本号: 3.0.0-alpha-308032023052300

示例代码:
onMounted(async () => {  
  const res = await uni.request({url:"/foo", method:"get"});  
  console.log({ res });  
});

操作步骤:
onMounted(async () => {  
  const res = await uni.request({url:"/foo", method:"get"});  
  console.log({ res });  
});

预期结果:

res.cookies 应该要包含元素

实际结果:

res.cookies h5端为空

bug描述:

比如/foo服务端返回Set-Cookie头, uni.request在h5端success回调的cookies总是为空(小程序端cookies不为空)

2023-05-29 20:23 负责人:无 分享
已邀请:

要回复问题请先登录注册