Javascript 请确保客户端正在发送referer或使用API控制台删除referer限制。Google日历API

Javascript 请确保客户端正在发送referer或使用API控制台删除referer限制。Google日历API,javascript,google-api,google-calendar-api,Javascript,Google Api,Google Calendar Api,我必须尝试通过javascript获取google calander事件 在google控制台中,我创建了一个项目、API密钥、OAuth客户端id,并为google日历启用API 我已将授权javascript源代码设置为 前两天工作正常,但昨天不工作,出现以下错误 请求未指定任何引用者。请确保客户 正在发送推荐人或使用API控制台删除推荐人 限制 错误消息是 { "error": { "errors": [ { "domain": "usageLimits", "

我必须尝试通过javascript获取google calander事件

在google控制台中,我创建了一个项目、API密钥、OAuth客户端id,并为google日历启用API

我已将授权javascript源代码设置为

前两天工作正常,但昨天不工作,出现以下错误

请求未指定任何引用者。请确保客户 正在发送推荐人或使用API控制台删除推荐人 限制

错误消息是

{
 "error": {
  "errors": [
   {
    "domain": "usageLimits",
    "reason": "ipRefererBlocked",
    "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.",
    "extendedHelp": "https://console.developers.google.com/apis/credentials?project=698394884872"
   }
  ],
  "code": 403,
  "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions."
 }
}

当我通过邮递员点击YouTube API时,我也遇到了同样的问题

Url-

 https://content.googleapis.com/youtube/v3/videos?id=H61xC_BUros&part=snippet%2CcontentDetails%2Cstatistics&key=
{
    "error": {
        "errors": [
            {
                "domain": "usageLimits",
                "reason": "ipRefererBlocked",
                "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.",
                "extendedHelp": "https://console.developers.google.com/apis/credentials?project=292824132082"
            }
        ],
        "code": 403,
        "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referrer restrictions."
    }
}
面临错误-

 https://content.googleapis.com/youtube/v3/videos?id=H61xC_BUros&part=snippet%2CcontentDetails%2Cstatistics&key=
{
    "error": {
        "errors": [
            {
                "domain": "usageLimits",
                "reason": "ipRefererBlocked",
                "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referer restrictions.",
                "extendedHelp": "https://console.developers.google.com/apis/credentials?project=292824132082"
            }
        ],
        "code": 403,
        "message": "The request did not specify any referer. Please ensure that the client is sending referer or use the API Console to remove the referrer restrictions."
    }
}
工作解决方案-

添加以下(点击邮递员时在标题中)


所以请求是否指定了推荐人?检查开发人员工具网络选项卡,查看请求头以查看是否存在Referer Header的可能重复项