我有一个托管在 Azure 上的站点,其中阻止了对 Google UrlShortner API 的调用。我收到错误:
{
"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 地址添加到开发人员控制台中的 API 项目凭据中。这似乎是 Azure 的一个问题,但我看不到任何人有答案。
任何建议都会很棒!