gpt4 book ai didi

javascript - 由于 AppCheck,我对 Firestore 的所有请求都被归类为未验证?

转载 作者:行者123 更新时间:2023-12-05 04:38:17 25 4
gpt4 key购买 nike

我为 Firestore 强制执行了 Firebase AppCheck。

现在,当我尝试访问数据时,出现错误:

    firebase
.firestore()
.doc(firestoreRoot.configs.priceIds._pathUrl)
.get()
.then((v) => console.log(v.data()));

appcheck error

在 Firebase 中,它说我的所有请求都未经验证:

enter image description here

这只发生在 Firestore 上。

还有什么我必须做的吗?

我使用以下方法在我的应用中启用了 AppCheck:

  const appCheck = firebase.appCheck();
appCheck.activate("MY_SITE_KEY", true);

我尝试在 firebase 控制台中禁用 AppCheck,现在我的所有请求都被接受了。

最佳答案

The firebase documentation说:

Important: Cloud Firestore support is currently available only for Android and iOS clients. If your project has a web app, don't enable Cloud Firestore enforcement until web client support is available.

因此,appcheck 不能与 web 应用程序的 firestore 一起使用。

关于javascript - 由于 AppCheck,我对 Firestore 的所有请求都被归类为未验证?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70629426/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com