我创建了一个私有存储桶并允许私有
当我在 REST APIS 中获取图像时,我的 Web 图像中的一切都运行良好(例如 android 和 IOS 应用程序,然后错误访问被拒绝)
这是我的存储桶策略
{
"Version": "2012-10-17",
"Id": "PolicyID",
"Statement": [
{
"Sid": "StmID",
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:DeleteObject",
"s3:GetObject",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:GetObjectAcl"
],
"Resource": "arn:aws:s3:::name/*",
"Condition": {
"StringLike": {
"aws:Referer": [
"https://google.com/*" //server url here like
]
}
}
}
]
}
有什么建议吗?