File tree Expand file tree Collapse file tree
packages/firebase_storage/firebase_storage_web Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,7 +148,9 @@ have to grant Firebase the ability to access these files using the
148148[Google Cloud SDK](//cloud.google.com/sdk/docs/):
149149
150150```bash
151- gsutil -m acl ch -r -u service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com gs://YOUR-CLOUD-STORAGE-BUCKET
151+ gcloud storage objects add-iam-policy-binding gs://YOUR-CLOUD-STORAGE-BUCKET \
152+ --member="serviceAccount:service-PROJECT_NUMBER@gcp-sa-firebasestorage.iam.gserviceaccount.com" \
153+ --role="roles/storage.objectViewer"
152154```
153155
154156You can find your project number as described in the [introduction to
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ firebase_storage/example$ cat cors.json
4848And then, with ` gsutil ` :
4949
5050```
51- firebase_storage/example$ gsutil cors set cors.json gs://my-example-bucket.appspot.com
51+ firebase_storage/example$ gcloud storage buckets update gs://my-example-bucket.appspot.com --cors-file=cors.json
5252Setting CORS on gs://my-example-bucket.appspot.com/...
5353```
5454
You can’t perform that action at this time.
0 commit comments