-
Notifications
You must be signed in to change notification settings - Fork 577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/lib/sts.js 101 行语法错误 #520
Comments
@720t (1)针对','并不属于语法报错,其实是合理的 (2)你的这个ali-oss版本是多少,jhiesey/stream-http#91 这个其实新浏览器新特性,原因是因为我们的ali-oss依赖了第三方库stream-http,该库对UA的设置做了安全限制。后来SDK这边已经做了调整,理论上如果用的是新版本不会出现这个错的,因为SDK内部已经规避了这个问题,请排查你的版本。 |
@luozhang002 (1)',' 问题补充 (2) ali-oss版本是:6.0.1 使用 npm install --save ali-oss 安装的 请问以上问题可以解决吗? |
@720t debug这个从js语法上来说的确是没问题的,这个 ‘,’下个版本去掉,保持统一规范。但其实vue之前测试的时候,npm run dev 也是OK的 |
@luozhang002 谢谢老大 |
我刚下载的新版本 还是会Refused to set unsafe header "User-Agent" |
debug(
'response %s %s, got %s, headers: %j',
reqParams.method, reqUrl, result.status, result.headers, // 这里多了个 ','号
);
2. putObject 成功,但浏览器(360浏览器)报错:Refused to set unsafe header "User-Agent"
The text was updated successfully, but these errors were encountered: