Google api API资源管理器IPRefererBlock

Google api API资源管理器IPRefererBlock,google-api,google-plus,http-status-code-403,google-plus-domains,Google Api,Google Plus,Http Status Code 403,Google Plus Domains,如何使用谷歌API浏览器 我想测试Google+域API,即使通过API Explorer,我也会收到403错误: { "error": { "errors": [ { "domain": "usageLimits", "reason": "ipRefererBlocked", "message": "There is a per-IP or per-Referer restriction configured on your API key and the

如何使用谷歌API浏览器

我想测试Google+域API,即使通过API Explorer,我也会收到403错误:

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "ipRefererBlocked",
    "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed.",
    "extendedHelp": "https://console.developers.google.com"
   }
  ],
  "code": 403,
  "message": "There is a per-IP or per-Referer restriction configured on your API key and the request does not match these restrictions. Please use the Google Developers Console to update your API key configuration if request from this IP or referer should be allowed."
 }
}

这是谷歌开发者控制台中的应用程序设置问题。在凭证屏幕上,它列出了允许使用API密钥的IP。这是一种安全预防措施,有助于防止钥匙泄漏。

您需要将允许的IP编辑为空(不太安全),或将其更新为包含服务器的实际IP。

您是在使用API密钥还是只是通过“授权请求”切换来验证请求?使用OAuth 2.0授权请求-使用默认设置打开(选中的所有权限也不起作用)可能与Hello重复,我面临相同的问题,请您解释如何编辑允许的IP,我无法在凭证屏幕中找到此项,谢谢