我在我的应用程序中使用Firebase实时数据库进行聊天功能。现在我们已经准备好启动我们的应用程序,所以我们应该解决这个问题。xxxx-xxxx-4458' has insecure rules。在正式文档和其他地方,我发现只有解决方案,我们需要使用firebase auth进行验证,但是我们的主数据库和登录过程在我们自己的服务器上工作,而且我们使用的只是用于聊天的实时聊天,所以我们没有使用任何防火墙身份验证,因此我们仍然无法修复问题。
We've detected the following issue(s) with your security rules:
any us
我有一个反应应用程序,我为我自己开发的在本地主机开发模式中使用。
该应用程序将一些数据存储到我为该项目创建的实时数据库中。
没有身份验证,因为只有我在开发模式中使用它。
firebase数据库上的规则是默认的:
{
"rules": {
".read": true,
".write": true
}
}
因此,firebase提醒我注意通常的情况:'Your security rules are defined as public, so anyone can steal, modify...
我正在开发一个使用firebase云防火墙的银行应用程序。我已经制定了这样的规则:
// Allow read/write access on all documents to any user signed in to the application
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth.uid != null;
}
}
}
我的数据库结构如下:
/