My development site was running fine with 'allow read: if true'. In production I made the changes below which should allow read access to the public collections. I am able to download the data and my frontend renders correctly but I am getting permission errors in the console.
I am using flamelink as a cms which does place references in some fields. Do I need read permissions to all the referenced collections as well?
service cloud.firestore {
match /databases/{database}/documents {
match /fl_content/{document} {
allow read: if true
}
match /fl_files/{document} {
allow read: if true
}
match /fl_navigation/{document} {
allow read: if true
}
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
I am receiving the data with this Vue method. The data is received and I can access it.
firestore: {
pageContent: firestore
.collection("fl_content")
.where("_fl_meta_.schema", "==", "aboutPage")
.limit(1),
},
But the console is showing errors
Uncaught Error in snapshot listener: FirebaseError: Missing or insufficient permissions.
Any help?