
ServiceException: 401 Anonymous caller does not have storage.buckets.update access to the Google Cloud Storage bucket.のエラー回避方法

geDem
firebase の cors を設定しようとしたら、エラーが出てしまいました・・・
実行したコマンド
gsutil cors set cors.json gs:*****.com
エラー文
Setting CORS on gs://*****.com/...
ServiceException: 401 Anonymous caller does not have storage.buckets.update access to the Google Cloud Storage bucket.
Permission 'storage.buckets.update' denied on resource (or it may not exist).
なにやら匿名の人がストレージデータ扱おうとすんじゃねえよ的なことが書かれていますね。
解決策
ただ単にログインできていないだけのようでした。
gcloud auth login
🙂↕️最後まで読んでいただきありがとうございます🙂↕️