Questions
heshanheshanasked 4 months ago
permission-denied, Exception has occurred.
FirebaseException ([cloud_firestore/permission-denied] The caller does not have 
permission to execute the specified operation.)
how to fix?
1

1 Answers

Accepted
codegenlabcodegenlabanswered 4 months ago
change cloud firestore rule, this,
rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }
  }
}
to this,
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
 match /{document=**} {
  allow read, write: if request.auth != null;
  }
 }
}
1