APIs Explorer ipRefererBlocked



如何使用Google API浏览器?

https://developers.google.com/apis-explorer/p/plusDomains/v1/plusDomains.people.get

我想测试Google+域名API,甚至通过API浏览器我收到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."
 }
}

这是在Google开发者控制台中的应用程序设置问题。在凭据屏幕上,它列出了允许使用API Key的ip。这是一种安全预防措施,以防钥匙泄露。如图片所示

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

相关内容

  • 没有找到相关文章

最新更新