Firebase storage security rules 400 error issue “Permission denied. Could not access bucket xxxxx-****.appspot.com”

前端 未结 7 2395
清酒与你
清酒与你 2020-11-29 04:30

I keeps getting message error from firebase link saying 400 error with my firebase storage upload in my react project when trying to upload photo... everything were working

7条回答
  •  长情又很酷
    2020-11-29 04:52

    This is due to a missing permission. You need to check whether you have

    firebase-storage@system.gserviceaccount.com

    as a member with a "Storage Admin" role. If you don't have one, then add it. That would fix the issue.

    Here's the step on how you can check and add permissions.

    • Go to Cloud console
    • Navigate to Storage
    • Select your bucket then click show info panel.

    You can also add the missing permission in the IAM & Admin if you want.

提交回复
热议问题