Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access url without token in Firebase Storage

I have a firebase storage download url, like

https://firebasestorage.googleapis.com/v0/b/siren-5eee7.appspot.com/o/profile%2FC6jNlR0F4cZBPv7wF0REWUNVor33?alt=media&token=63a9130e-2ba6-4f38-ac3f-2231c54a1043

How can I access this url without token parameter?

For example, If I access above url without token there will be 403 error showing permisson denied.

My firebase storage secure rule is below :

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}

This file located in /etc file. How can I do it?

like image 216
ton1 Avatar asked Sep 11 '17 10:09

ton1


1 Answers

try changing rule:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read;
      allow write: if request.auth != null;
    }
  }
}
like image 81
aofdev Avatar answered Sep 17 '22 16:09

aofdev