运行良好,但是Firebaseexception([[Cloud_firestore/Aldermission Indied]呼叫者无权执行指定的操作。)
我一直在使用Firebase来制作Flutter应用程序,并且该应用程序运行良好,但是今天,当我尝试从使用快照中检索数据时,我得到了此例外。
firebaseexception([cloud_firestore/clermission-dyed]呼叫者无权执行指定的操作。)
我要做的firebase上是否有任何更新?
I have been working on the Flutter app with firebase and the app was working well but today when I trying to retrieve the data from using snapshot I got this exception.
FirebaseException ([cloud_firestore/permission-denied] The caller does not have permission to execute the specified operation.)
is there any update on firebase i have to do or what ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您创建一个项目并设置Firestore访问IT测试模式时,它将设置数据库,以仅允许公共访问一个月。如果这突然发生在您身边没有改变的情况下,则可能是您的安全规则过期。
现在,将是为您的数据实施适当安全规则的好时机,因为将所有数据公开访问是解决未来问题的秘诀。
因此,了解如何保护数据,请查看安全规则,这更技术文档,也请参见:
When you create a project and set Firestore access it test mode, it sets the database up to allow public access for only a month. If this suddenly happened without a change on your side, it could be that your security rules expired.
Now would be a good moment to implement proper security rules for your data, as leaving all data publicly accessible is a recipe for future problems.
So learn how to secure the data, have a look at the documentation on security rules, this more technical documentation, and also see: