Google登录网站错误:拒绝为目标域生成登录提示的权限 [英] Google sign in website Error : Permission denied to generate login hint for target domain
问题描述
我正在尝试将Google登录信息集成到我的网站中.
I am trying to integrate Google login in my website ..
我正在关注以下示例: https://developers.google.com/identity/sign-in/web/
I am following this example: https://developers.google.com/identity/sign-in/web/
我为我的项目生成了客户端ID,并在上面的代码中替换了它,我不断收到此错误:
I generated client id for my project and replaced it in above code, I keep getting this error:
- 那是一个错误.
错误:invalid_request
Error: invalid_request
拒绝为目标域生成登录提示的权限.
推荐答案
在进行本地开发时,我遇到了这个问题.确保在本地运行项目时,启动" http://localhost "而不是" http://0.0.0.0 ",等等...
I ran into this issue while doing local development. Make sure when running your project locally that you launch "http://localhost" rather than "http://127.0.0.1", "http://0.0.0.0", etc...
这篇关于Google登录网站错误:拒绝为目标域生成登录提示的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!