运行良好,但是Firebaseexception([[Cloud_firestore/Aldermission Indied]呼叫者无权执行指定的操作。)

发布于 2025-01-27 04:38:36 字数 208 浏览 2 评论 0原文

我一直在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

送君千里 2025-02-03 04:38:36

当您创建一个项目并设置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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文