Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 实施谷歌&x2B;使用google API登录本地主机的按钮_Html_Button_Google Api_Google Plus_Google Api Client - Fatal编程技术网

Html 实施谷歌&x2B;使用google API登录本地主机的按钮

Html 实施谷歌&x2B;使用google API登录本地主机的按钮,html,button,google-api,google-plus,google-api-client,Html,Button,Google Api,Google Plus,Google Api Client,我正试图在一个网站上实现Google+登录按钮,我正在通过Sublime Text2编写代码,并通过Apache运行。我对web开发和使用localhost/非常陌生 所以我的问题来了,因为当我在“索引”Chrome HTML文档中按下按钮时,它运行良好,我可以使用我的google+帐户登录 但是,如果我在一个链接到它的网页(一个新文档“登录”Chrome HTML文档)中有一个按钮,登录就不会通过。它会打开我的帐户,但不会让我完全登录 错误:原点不匹配 我想我必须在我的API和Auth中的凭证

我正试图在一个网站上实现Google+登录按钮,我正在通过Sublime Text2编写代码,并通过Apache运行。我对web开发和使用localhost/非常陌生

所以我的问题来了,因为当我在“索引”Chrome HTML文档中按下按钮时,它运行良好,我可以使用我的google+帐户登录

但是,如果我在一个链接到它的网页(一个新文档“登录”Chrome HTML文档)中有一个按钮,登录就不会通过。它会打开我的帐户,但不会让我完全登录

错误:原点不匹配

我想我必须在我的API和Auth中的凭证中更改JavaScript源代码中的某些内容,但它不允许我添加它所说的内容

Origins URIs must not contain a path: http://localhost/signin.html
我怎样才能访问此网页

谢谢大家!

源URI不能包含路径:


http://localhost/signin.html
没有路径将变为
http://localhost
。您必须在中编辑应用程序,使其没有路径。

发生在我身上的是,重定向URI/授权来源上的UX使我困惑,“保存”按钮不起作用。仅仅因为项目已添加到列表中,并不意味着它已保存。此外,如果是非标准端口,请确保添加了正确的端口


谢谢,这是我的问题。在我的例子中,我单击了保存,但没有按enter键将其添加到列表中。