APIs Explorer ipRefererBlocked

APIs Explorer ipRefererBlocked

如何使用GoogleAPI资源管理器?

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

我想测试 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."
 }
}

这是 Google 开发者控制台 中的一个应用设置问题。在凭据屏幕上,它列出了允许使用 API 密钥的 IP。这是一种安全预防措施,可在密钥泄漏时帮助保护密钥。 As the picture

您需要将允许的 IP 编辑为空(安全性较低)或更新它以包含服务器的实际 IP。 As the picture