请求被Google API拒绝:具有引荐来源限制的API密钥不能与此API一起使用 [英] Request Denied by Google API: API keys with referer restrictions cannot be used with this API

查看:302
本文介绍了请求被Google API拒绝:具有引荐来源限制的API密钥不能与此API一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Outsystems平台进行了Google Map API REST调用:

I have a Google Map API REST call through Outsystems platform:

但是,如果我在Google控制台中指定了引荐来源网址,则会拒绝访问,但是它是没有引荐来源网址的工作文件:

However, if I specify a referrer in my Google Console, I get access denied, but it's working file without the referrer:

为什么在使用API​​时在Google控制台中设置引荐来源网址会导致拒绝访问错误?

Why does setting a referrer in my Google Console cause an access denied error when using the API?

推荐答案

相关问题引荐来源网址限制仅适用于Web API,不适用于Web服务.

referrer restrictions only work for web APIs, not web services.

来自文档

一旦受限制,密钥将仅在支持该类型限制的平台上起作用.

Once restricted, a key will only work on platforms that support that type of restriction.

  • IP addresses (individual servers) - for use with the web service APIs.
  • HTTP referrers (web sites) - for use with the Web APIs.

这篇关于请求被Google API拒绝:具有引荐来源限制的API密钥不能与此API一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆