设置了跨域以后,还是获取到了数据,fetch加上头部就可以了
fetch('oss资源地址', { headers: { 'OKAccess-Control-Allow-Origin': '*', 'Access-Control-Allow-Credentials': true, 'cache': "no-cache", 'Cache-Control': 'no-cache' }, method: 'get' }).then(res => res.blob().then(blob => { }));
水个记录