Firebase:此域未经授权 [英] Firebase: This domain is not authorized

查看:18
本文介绍了Firebase:此域未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我导入了 Firebase JS v3 API 并用于初始化 Firebase:

I imported Firebase JS v3 API and used to initialize Firebase using:

firebase.initializeApp(config);

但是应用程序无法通过本地主机上的网络浏览器正确加载,导致以下错误:

However the app failed to load correctly via web browser on localhost, resulting in the following error:

错误:此域未获授权对您的 OAuth 操作火力基地项目.编辑授权域列表Firebase 控制台.

Error: This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.

firebase.js:71:1333

firebase.js:71:1333

推荐答案

我通过将 localhost 域添加到 OAuth 重定向域(在 SETUPFirebase 控制台的 Auth 选项卡上的登录方法).

I solved the problem by adding the localhost domain to OAuth redirect domains (within SETUP SIGN IN METHOD on the Auth tab of Firebase console).

这篇关于Firebase:此域未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆