1👍
Your security rules do not allow anyone to read or write to your database. If you set your rule to true as shown below, it should allow you to write:
Sample:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /series/{document} {
allow read, write: if true;
}
}
}
To configure your Firestore Security Rules:
Firebase Console > Firestore Database > Rules (Tab) > Edit Rules > Deploy & Test
In this rule anyone can read or write to your series collection. I recommend reading about Firestore Security Rules to restrict access to authorized users only.
Thanks.
- [Vuejs]-How to clear checkbox checked status? with vue
- [Vuejs]-How to get value from a looped table, trigger a function that stores that value in an array in vue
0👍
Your firebase firestore rules don’t allow reads or write for the collection that you are trying to query from.
Goto Firebase console and modify the firestore rules
Docs: https://firebase.google.com/docs/firestore/security/get-started
Source:stackexchange.com