Я пытаюсь получить доступ к моим данным из базы данных, чтобы запустить небольшой тест. Я настроил приложение в консоли Firebase и установил правила доступа:
// Allow read/write access to all users under any conditions
// Warning: **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;
}
}
}
Тем не менее, я всегда получаю следующую ошибку:
angular.js:14328 Error: permission_denied at /messages: Client doesn't have permission to access the desired data.
в этой строке кода:
var ref = firebase.database().ref().child('messages');
Что мне не хватает?