shi*_*vat 2 node.js google-cloud-storage google-cloud-platform angular
我有这个 URL,但拒绝访问需要任何许可。
https://storage.googleapis.com/BUCKET/Artboard_4.png
收到此错误:
匿名调用者没有 storage.objects.get 访问 Google Cloud Storage 对象的权限。
听起来您尚未将存储桶权限设置为公共?
在控制台中,您可以单击存储桶菜单中的“设置存储桶权限”。在添加成员中输入“allUsers”并分配角色 -> 存储 -> 存储对象查看器。
使用 gsutil,运行gsutil -m acl set -R -a public-read gs://bucket应该将该存储桶中的所有文件的访问权限设置为公开。要设置存储桶的默认权限,以便在添加文件时默认为公开文件,请使用gsutil defacl set public-read gs://bucket.
| 归档时间: |
|
| 查看次数: |
1206 次 |
| 最近记录: |