[firebasestorage] Display image error code 403


#1

Hi, I am using Firebase Storage for save images app.

My steps implement:

  1. Upload the file to Firebase Storage
  2. Observe for a successful upload
  3. Successful upload returns a public download URL
  4. Store this download URL to database

dowload Url: “https://firebasestorage.googleapis.com/v0/b/project-xxx.appspot.com/o/images%2F-KJjDEAjwke1r_zNtO-W%2Fmobile_720x389_subsidy_10.jpg?alt=media&token=e756cbac-5a3c-458b-b56f-edc4b13bc658

At time implement it working well. but then time image not show. I think because token expired and error:

{
  "error": {
    "code": 403,
    "message": "Unauthorized request."
  }
}

Am I missing a something?

Thanks.


#2

Hi, do you know the answer for this problem?


#3

Hey is your user authorizes to make that request?

By default Firebase security rules need users to be authenticated to be able to access the database and Storage, so take a look at your security rules fist.