【发布时间】:2019-08-18 17:11:02
【问题描述】:
我每天都会收到来自 Firebase Firestore 的警告电子邮件,内容是:
"任何用户都可以读取您的整个数据库"
但就我而言,它是一个开放的数据库,每个人都可以读取数据。 我已经像这样设置了我的安全规则:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read: if true;
allow write: if request.auth.uid == 'xxxxx';
}
}
}
问题出在哪里,我该如何停止此警告电子邮件?
【问题讨论】:
-
事实证明这是可能的。直到现在我才知道这一点,所以我现在要关闭我自己的一些公共数据库上的警报。 :)
-
嘿嘿我很开心!!非常感谢。感谢您的支持。
标签: firebase google-cloud-firestore firebase-security