Public URL of google cloud storage access denied

Viewed 3416
1 Answers

It sounds like you haven't set the bucket permissions to public?

In the console, you can click on "Set bucket permissions" in the bucket's menu. Enter "allUsers" in Add Members and assign Role -> Storage -> Storage Object Viewer.

With gsutil, running gsutil -m acl set -R -a public-read gs://bucket should set access on all files in that bucket to public. To set default permissions on the bucket so that files are public by default when they're added, use gsutil defacl set public-read gs://bucket.

Related