谷歌 OAuth &API:空白登录,因为本地主机未“列入白名单"; [英] Google OAuth & API: blank login because localhost is not "whitelisted"

查看:23
本文介绍了谷歌 OAuth &API:空白登录,因为本地主机未“列入白名单";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误(从 html 检查):

详细信息:不是客户端的有效来源:http://localhost:3000 尚未被列入白名单客户端 ID 830959654564-inlhib5r4afjbm4ebt1e43gt07bpvve5.apps.googleusercontent.com.请访问 https://console.developers.google.com/ 并将此源列入您项目的客户端 ID 的白名单."错误:idpiframe_initialization_failed"

details: "Not a valid origin for the client: http://localhost:3000 has not been whitelisted for client ID 830959654564-inlhib5r4afjbm4ebt1e43gt07bpvve5.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID." error: "idpiframe_initialization_failed"

问题:尝试使用 localhost:3000 和我从 React 提供的本地 IP 地址.我试过清除缓存.我试过使用其他浏览器.

Problem: Tried using localhost:3000 and my local ip address given from React. I've tried clearing the cache. I've tried using other browsers.

空白 Google OAuth

推荐答案

仍然没有真正的解决方案,但我创建了一个新项目并且还没有遇到任何问题.

Well still no real solution but I created a new project and have reached no problems yet.

这篇关于谷歌 OAuth &API:空白登录,因为本地主机未“列入白名单";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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