Firebase授权异常:提示域名未授权却无Authorized Domains设置板块
解决Firebase Google登录域名授权错误
错误说明
用户在maxloh.com网站尝试Google登录时,弹出错误:
"This domain (maxloh.com) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab."
解决步骤
- 打开Firebase控制台,选中你的目标项目
- 左侧导航栏点击「Authentication」(认证)模块
- 切换到「Sign-in method」(登录方法)标签页
- 向下滚动页面,找到「Authorized domains」(授权域名)区域(该区域并非独立板块,而是嵌套在Sign-in method页面内,容易被忽略)
- 点击「Add domain」按钮,输入
maxloh.com并确认添加 - 等待1-2分钟让设置同步生效,再测试Google登录功能
额外排查点
- 确认你操作的是对应
maxloh.com网站的Firebase项目,避免选错项目 - 如果控制台为旧版界面,可点击顶部的「Go to new console」切换到新版,新版UI布局更清晰
内容的提问来源于stack exchange,提问作者pete
相关产品推荐
相关产品推荐

