首页 > 解决方案 > Firebase firestore 数据库无法使用控制台工作

问题描述

对于基本问题,我很抱歉,但我开始使用 Firebase Firestore 数据库,我转到控制台开始查看如何添加数据等。但是,每当我添加一个集合时,我就是看不到它。我点击“开始收藏”,输入一个ID。然后我添加一个虚拟文档。但它只是没有添加。我有一个看起来像这样的屏幕:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

但是当我点击保存后它确实出现了......

我已将规则更改为:

// This rule allows anyone on the internet to view, edit, and delete
// all data in your Firestore database. It is useful for getting
// started, but it is configured to expire after 30 days because it
// leaves your app open to attackers. At that time, all client
// requests to your Firestore database will be denied.
//
// Make sure to write security rules for your app before that time, or else
// your app will lose access to your Firestore database
match /{document=**} {
  allow read, write: if request.time < timestamp.date(2020, 3, 10);
}

我已经尝试了几个小时,没有运气。谢谢你的帮助!

标签: firebasegoogle-cloud-firestore

解决方案


就我而言,我认为是 Qustodio 互联网保护阻止了请求,当我关闭它时,数据库成功加载。


推荐阅读