Firebase 3.0.1 web API查询isn';无法工作,获取iFrame安全错误
我简单地调用了Firebase 3.0.1 web API查询isn';无法工作,获取iFrame安全错误,firebase,Firebase,我简单地调用了ref.once('value',callback)。回拨电话从未接到过 相反,我在Chrome控制台中遇到了这个错误:拒绝显示'https://console.firebase.google.com/project/project6...redacted...73&parent=http%3A%2F%2Flocalhost%3A8204&pfname=&rpctoken=3...redacted...4'在帧中,因为它将'X-frame-Options'设置为'DENY'。 我不
ref.once('value',callback)
。回拨电话从未接到过
相反,我在Chrome控制台中遇到了这个错误:拒绝显示'https://console.firebase.google.com/project/project6...redacted...73&parent=http%3A%2F%2Flocalhost%3A8204&pfname=&rpctoken=3...redacted...4'在帧中,因为它将'X-frame-Options'设置为'DENY'。
我不知道这个iFrame是什么,也不知道这是否就是我没有收到回调的原因。FWIW,我正在localhost:8204
编辑:
这是一个更完整的代码示例
import firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/database'
firebase.initializeApp({
apiKey: config.firebaseApiKey,
authDomain: `${config.firebaseAppName}.firebaseio.com`,
databaseURL: `https://${config.firebaseAppName}.firebaseio.com`,
storageBucket: config.firebaseStorageBucket
})
const ref = firebase.database().ref()
ref.once('value', callback)
好的,问题只是在初始化配置
authDomain
字段中,我写了.firebaseio.com
,但它应该是。firebaseapp.com
您能包含您正在使用的代码的更完整片段吗?相同的capy/paste