google-maps - 如何设置 Google API key 限制 - HTTP 引荐来源网址

标签 google-maps google-api google-places-api

Google API key 限制 - HTTP 引荐来源网址

我把我的 Azure 网站 url xxxx.scm.azurewebsites.net 放在那里,但不起作用(Google Places API Web 服务停止工作)。

localhost:44300 也不起作用。

我必须将 key 限制设置为“无”,然后 Google Places API Web 服务才能工作。

我做错了什么?

最佳答案

Web Service 应该在后端服务器上执行,因此对 Web Service 的正确限制是 IP 限制。

HTTP 引用限制用于客户端服务,例如 Google Maps JavaScript API,它不适用于 Web 服务。

关于google-maps - 如何设置 Google API key 限制 - HTTP 引荐来源网址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41993276/

相关文章:

google-maps - 如何通过Google Places API获取业务 "description"?

html - 谷歌在我的表单中自动完成

java - 谷歌应用引擎: new instance with no user data

android - 无法在 android api 23 上打开位置?

ios - 如何在 Swift 中从 Google Places 接收国家/地区代码

google-maps - 在 Google map 的不同图层上显示标记集

Android Google Maps V2 更改我的位置图标

在 android 中添加 google place API 时出现 java.lang.IllegalStateException

java - 如何从地点选择器 Activity 中检索 map 快照?

php - 从 URL 获取重定向的 URL