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/