본문 바로가기
Development Solutions/Flutter & Dart

[Solved][firebase] error FirebaseError: Firebase Storage: User does not have permission to access '*******'. (storage/unauthorized) 해결방법

by studio ODOC 2022. 9. 3.
반응형

[Solved][firebase] 해결방법

error FirebaseError: Firebase Storage: User does not have permission to access '*******'. (storage/unauthorized)

 

 

Firebase storage의 내용을 read할때 발생하는 오류이다.

이 오류는 권한이 없는 유저가 storage의 내용을 읽고자 할 때 발생하므로

아래와 같이 Storage - Rules의 내용을 수정하자.

 

[English](This error occurs when reading the contents of Firebase storage.

This error occurs when an unauthorized user tries to read the contents of the storage.

Modify the contents of Storage - Rules as follows.)

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
     allow read;
     allow write: if request.auth != null;
    }
  }
}
반응형

https://stackoverflow.com/questions/40385373/firebase-storage-authentication-issues

 

Firebase Storage authentication issues

I am trying to download images from Firebase storage but I am getting errors. E/StorageUtil: error getting token java.util.concurrent.ExecutionException: com.google.android.gms.internal.zzanu: Pl...

stackoverflow.com

https://stackoverflow.com/questions/61581255/firebase-no-auth-token-for-request-error

 

Firebase "no auth token for request" Error

I'm trying to download a file from Firebase. I've done all the requirements to set up the cloud Storage from Firebase and made my cloud storage open : rules_version = '2'; service firebase.storage...

stackoverflow.com

 

반응형