【发布时间】:2017-10-26 21:09:29
【问题描述】:
我在我的网站上使用 Firebase 实时数据库,一切正常,但是,当我想使用自定义 json 令牌进行身份验证时,我遇到了这样的 CORS 问题:“来自另一个被阻止源的请求:相同的源策略阻止读取https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyCustomToken?key=$somekey" 中的远程资源。
谢谢
【问题讨论】:
-
可能与以下内容重复:stackoverflow.com/questions/37760695/…
-
@Orlandster 你链接的骗子是针对云存储的,这个问题是关于 RTDB 的。
-
@Yorbenys:为了增加获得帮助的机会,请编辑您的问题以包含 minimal code that reproduces the problem。
-
您是否制定了内容安全策略?如果是这样,您需要允许 XHR 到 googleapis.com
标签: javascript firebase firebase-realtime-database firebase-authentication