我们通过oss接口获取链接,如果是http协议,比如
http://data.babel.cc/document/1ef7a0b457104f56b81757c9dc98c573/babel.dmg?Expires=1547721293&OSSAccessKeyId=LTAIStFTzwnLMZFR&Signature=QbH2kYwxUlwx177e1V%2BC8q7i1oM%3D&response-content-disposition=attachment%3B%20filename%3D%22%25E5%25B7%25B4%25E5%2588%25AB%25E9%25B8%259F%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF_mac_2.3.13_setup.dmg%22%3Bfilename%2A%3DUTF-8%27%27%25E5%25B7%25B4%25E5%2588%25AB%25E9%25B8%259F%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF_mac_2.3.13_setup.dmg
则在浏览器中会重定向到localhost,
而把http改成https,比如
https://data.babel.cc/document/1ef7a0b457104f56b81757c9dc98c573/babel.dmg?Expires=1547721293&OSSAccessKeyId=LTAIStFTzwnLMZFR&Signature=QbH2kYwxUlwx177e1V%2BC8q7i1oM%3D&response-content-disposition=attachment%3B%20filename%3D%22%25E5%25B7%25B4%25E5%2588%25AB%25E9%25B8%259F%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF_mac_2.3.13_setup.dmg%22%3Bfilename%2A%3DUTF-8%27%27%25E5%25B7%25B4%25E5%2588%25AB%25E9%25B8%259F%25E5%25AE%25A2%25E6%2588%25B7%25E7%25AB%25AF_mac_2.3.13_setup.dmg
则能正常访问。
上面的链接地址,你们可以直接拷贝到浏览器中尝试一下。麻烦查看一下这是什么原因。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。