如何设置 Google API 密钥限制 - HTTP 引荐来源网址

mar*_*ial 4 google-maps google-api google-places-api

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

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

localhost:44300 也不起作用。

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

我做错了什么?

xom*_*ena 5

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

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

  • 如果从 Google Appengine 服务器发送请求会怎样?IP不会变吗?你会如何做IP限制?你如何找到IP? (2认同)