Javascript Google API OAuth2.0在本地主机上工作,而不是在域上

Javascript Google API OAuth2.0在本地主机上工作,而不是在域上,javascript,google-oauth,Javascript,Google Oauth,我有一个通过亚马逊aws注册和托管的域名。我将代码托管在S3存储桶中,因此我选择了Google登录,并按照Google登录文档创建了身份验证: 我相信这与谷歌凭证中的JavaScript起源有关。我已经验证了我运行的脚本代码与在本地dev tomcat实例上成功运行的脚本代码相同。然而,当我在我的.net域上,切换到.com后,我无法再连接“太多未经身份验证的请求”超时时,我就有了这段代码 从谷歌的api控制台 Authorized JavaScript origins For use with

我有一个通过亚马逊aws注册和托管的域名。我将代码托管在S3存储桶中,因此我选择了Google登录,并按照Google登录文档创建了身份验证:

我相信这与谷歌凭证中的JavaScript起源有关。我已经验证了我运行的脚本代码与在本地dev tomcat实例上成功运行的脚本代码相同。然而,当我在我的.net域上,切换到.com后,我无法再连接“太多未经身份验证的请求”超时时,我就有了这段代码

从谷歌的api控制台

Authorized JavaScript origins
For use with requests from a browser. 
This is the origin URI of the client application. 
It can't contain a wildcard (http://*.example.com) or a path (http://example.com/subdir). 
If you're using a nonstandard port, you must include it in the origin URI.

http://localhost:8080
http://heaolumassage.com

“超出未经验证使用的每日限制。”表示您没有验证您的请求。检查gapi.client.init,确保已正确添加客户端id和客户端密码。原始消息似乎每天只出现几次。我无法捕获确切的文本,因为它指出,对于项目,项目客户id需要将域添加到白名单中。但是,我有域集和客户端ID匹配。
Authorized JavaScript origins
For use with requests from a browser. 
This is the origin URI of the client application. 
It can't contain a wildcard (http://*.example.com) or a path (http://example.com/subdir). 
If you're using a nonstandard port, you must include it in the origin URI.

http://localhost:8080
http://heaolumassage.com