Google api referrer null不匹配与API密钥上配置的referrer限制不匹配

Google api referrer null不匹配与API密钥上配置的referrer限制不匹配,google-api,Google Api,我已经设置了一个浏览器API密钥,并在referer部分添加了“.mydomain.com/”。点击save,等待超过5分钟 在执行和API调用时,我遇到以下错误: Array ( [error] => Array ( [errors] => Array ( [0] => Array (

我已经设置了一个浏览器API密钥,并在referer部分添加了“.mydomain.com/”。点击save,等待超过5分钟

在执行和API调用时,我遇到以下错误:

Array
(
    [error] => Array
        (
            [errors] => Array
                (
                    [0] => Array
                        (
                            [domain] => usageLimits
                            [reason] => ipRefererBlocked
                            [message] => The referrer null does not match does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.
                            [extendedHelp] => https://console.developers.google.com/apis/credentials?project=xxxxxxxxx
                        )

                )

            [code] => 403
            [message] => The referrer null does not match does not match the referrer restrictions configured on your API key. Please use the API Console to update your key restrictions.
        )

)
如果我在googledev控制台中将referer部分留空,那么一切都会正常工作。我是否也需要在代码中的某个地方指定推荐人

该呼叫使用:

它发送:

GET https://www.googleapis.com/youtube/v3/channels?part=id&forUsername={USER_NAME}&key={YOUR_API_KEY}

该网站位于

如何调用API?添加了对问题的调用获取的“referer”HTTP请求头的值是多少。。。要求有时浏览器扩展会阻止引用程序。您如何调用API?添加了对问题的调用获取的“引用程序”HTTP请求头的值是多少。。。要求有时浏览器扩展会阻止推荐人。
GET https://www.googleapis.com/youtube/v3/channels?part=id&forUsername={USER_NAME}&key={YOUR_API_KEY}