gpt4 book ai didi

azure - 谷歌网址缩短器 "ipRefererBlocked"

转载 作者:行者123 更新时间:2023-12-03 02:48:38 27 4
gpt4 key购买 nike

我在 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 的问题,但我看不到有人有答案。

任何建议都会很棒!

最佳答案

即使使用静态IP,我也无法解决这个问题。解决方法是tinyUrl。他们的 API 运行完美。

关于azure - 谷歌网址缩短器 "ipRefererBlocked",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28309146/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com