I'm using Firestore for my project and it seems to have some collection reference error.
ERROR FirebaseError: Missing or insufficient permissions. at new FirestoreError (localhost:4200/vendor.js:66703:28)
Iv' used Angular Firebase in the past and it seems like I'm doing the same thing as I did last time.
my query is very simple and its looks like that
public getUsers(): Observable<any> {
return this.afs.collection('users').valueChanges();
}
I didnt make any changes for the Database rules
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
Do you have any idea why is that keep hapening?
You could change 'false' to 'true'. It will allow read/write access to all users under any conditions but NEVER use this rule set in production; it allows anyone to overwrite your entire database.
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With