This XML file does not appear to have any style information associated with it.

使用京东云OSS的外链访问(自己程序拼的外链,并非是OSS服务器上给定的外链).访问报如下错误

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error>
	<statusCode>403</statusCode>
	<Code>AccessDenied</Code>
	<Message>Access Denied</Message>
	<Resource>/(空间名)/image/微信图片.jpg</Resource>
	<RequestId>97F65(id一部分)762FCF</RequestId>
</Error>

在这里插入图片描述

这个问题产生的原因是:
OSS的空间名设置的是私有读写
之前是使用自己的OSS账号的key.密钥。设置的是公有读写、公有读私有写,程序拼接的外链是可以访问的,直接是下载文件。
空间名设置为公有的话就是都可以访问了,按项目需求和项目安全来决择!

欢迎大神指导,可以留言交流!

======================
本人原创文章,转载注明出入!

=================

猜你喜欢

转载自blog.csdn.net/dayonglove2018/article/details/107231961