到达邮件需要做什么?
rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// This rule allows anyone on the internet to view, edit, and delete
// all data in your Firestore database. It is useful for getting
// started, but it is configured to expire after 30 days because it
// leaves your app open to attackers. At that time, all client
// requests to your Firestore database will be denied.
//
// Make sure to write security rules for your app before that time, or else
// your app will lose access to your Firestore database
match /{document=**} {
allow read, write: if request.time < timestamp.date(2020, 2, 15);
}
}
}
值得担心吗?如果不采取任何措施,这会破坏应用程序吗?
您的安全规则设置为拒绝在规则中指定的日期对数据库的所有访问:
timestamp.date(2020, 2, 15)
这是 2020 年 2 月 15 日。这可能会让您的应用程序停止工作。
如果您愿意,您可以推迟日期,但您绝对应该实施适当的规则,以便任何具有互联网连接的人都无法读取和写入您的数据库。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)