繁体   English   中英

在 netlify 上部署 react 应用程序后,谷歌登录不起作用

[英]Google sign-in is not working after deploying react app on netlify

我已经在 netlify 上部署了我的反应应用程序,一切都按预期工作,但谷歌登录在应用程序中不起作用。 此外,我在谷歌控制台开发人员下添加了授权 Javascript 来源和授权重定向 URI。

在此处输入图像描述

我也尝试从浏览器中清除缓存和 cookie,但我收到以下错误消息

details: "Not a valid origin for the client: https://test123.netlify.app has not been registered for client ID 305573962147-ib90fi46r6ur7juhkrh6opptrvrjn722.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and register this origin for your project's client ID."
error: "idpiframe_initialization_failed"

我在这里有什么遗漏吗?

这也发生在我身上,您需要将网站域添加到授权域(在桌面而非移动设备中输入此设置)

授权域

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM