API Explorer ipRefererBlocked

Как использовать Google API Explorer?

https://developers.google.com/apis-explorer/

Я хотел бы протестировать API Google+ Domains и даже через 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."
 }
}

1 ответ

Решение

Это проблема с настройками приложения в консоли разработчиков Google. На экране учетных данных перечислены IP-адреса, которым разрешено использовать ключ API. Это мера безопасности, помогающая защитить ключ от утечки. Как изображение

Вам необходимо отредактировать разрешенные IP-адреса, чтобы они были пустыми (менее безопасными), или обновите их, чтобы включить фактический IP-адрес вашего сервера. Как изображение

Другие вопросы по тегам