Google API OAuth2.0使用不在域

时间:2017-06-14 02:21:25

标签: javascript google-oauth

我通过amazon aws注册并托管了域名。我将代码托管在S3存储桶上,因此我选择了Google登录并根据Google登录文档创建了身份验证:OAuth 2.0 for Client-side Web Applications

我认为它与Google凭据中的JavaScript起源有关。我已经验证我正在运行在我的本地dev tomcat实例上成功的相同脚本代码。但是,当我在我的.net域上并切换到.com后,我有了这个确切的代码。我无法再连接“太多未经验证的请求”超时。

"errors": [
 {
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
 }

来自google的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

0 个答案:

没有答案