我正在尝试创建 Google 登录并收到错误:
拒绝为目标域生成登录提示的权限
在将其标记为重复之前,这是not与提出的问题相同Google 登录网站错误:生成目标域登录提示的权限被拒绝 https://stackoverflow.com/questions/32041418/google-sign-in-website-error-permission-denied-to-generate-login-hint-for-targ因为在这种情况下,提问者位于本地主机上,而我在服务器上收到此错误。
Specifically, I have included the url of the server in the Authorized Javascript Origins, as in the following image:
and when I get the error, the request shows that the same url was sent, as in the following image:
我还应该在“限制”页面中添加其他内容吗?有什么办法可以弄清楚这里发生了什么吗?开发者控制台上是否有日志可以告诉我发生了什么?
好吧,我明白了。我使用的是 IP 地址(如“http://175.132.64.120 http://175.132.64.120") 对于重定向 uri,因为这是实时服务器上的测试站点,Google 只接受实际的 url(如 "http://mycompany.com http://mycompany.com" or "http://localhost http://localhost") 作为重定向 uri。
你知道,他们可以在文档中的某个地方说过,但无论如何。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)