S3 存储桶访问被拒绝 REST API 私有存储桶

时间:2021-04-10 15:07:26

标签: android laravel amazon-web-services api amazon-s3

我创建了一个私有存储桶并允许私有

当我在 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
                ]
            }
        }
    }
]
}

有什么建议吗?

0 个答案:

没有答案
相关问题