实时数据库的Firebase安全规则
我正在尝试为Firebase实时数据库设置规则。规则设置为
"rules": {
".read": true,
".write": true
} 这使它公开,但我想将其设置为私人,我想访问它。不仅是通过控制台,而且还通过Angular应用程序。
I am trying to set rules for the firebase Realtime Database. Rules are set to
"rules": {
".read": true,
".write": true
}
This makes it public but I want to set it to private and I want to access it. Not only through the console but the Angular app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要登录以获取
auth
对象,然后可以使用user-id限制访问:https://firebase.google.com/docs/database/security/rules-conditions#authentication
You need to login to get an
auth
object and then can use the user-id to restrict access:https://firebase.google.com/docs/database/security/rules-conditions#authentication