#author("2024-07-19T22:15:50+08:00","default:Admin","Admin") #author("2024-07-19T23:24:26+08:00","default:Admin","Admin") [[uni-app]] &color(red){※前提条件:vue3 的uniapp开发}; #contents uni.request 无法获取到 302 重定向的,Header里面的Location信息 并且网上说通过下面的代码可以获取到Response的cookie信息,也获取不到 #codeprettify{{ uni.setStorage({ key: 'cookie', data: result.header['Set-Cookie'], success: function() { console.log('成功存储'); } }); }} 无法重新修改request的 "User-Agent"信息 chunk-vendors.js:16447 Refused to set unsafe header "User-Agent" #hr(); Comment: #comment_kcaptcha