Firebase Firestore有不安全的规则警告 - 我如何修复我的应用程序没有身份验证
我的Firestore有以下规则:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
我的应用程序没有身份验证,它仅显示数据。
Firestore唯一写的是简单的电子邮件注册表格,我希望任何人都可以提交,以及从后端发生的购物车检查订单时。
我需要为此方案设置什么规则?
My firestore has the following rules:
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
My app has no authentication, it is only displaying data.
The only time the firestore is written to is in a simple email sign up form that I want anyone to be able to submit and when an order is checked out from the cart that happens on the back end.
What rules do I need to set for this scenario?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论