【发布时间】:2017-01-12 18:46:05
【问题描述】:
如何让 Google Maps API 密钥在 localhost 上工作?
我创建了一个 API 密钥,并在引荐来源网址下添加了以下内容:
Accept requests from these HTTP referrers (websites) (Optional)
Use asterisks for wildcards. If you leave this blank, requests will be
accepted from any referrer. Be sure to add referrers before using this key
in production.
localhost
这不起作用,如果我排除 API 密钥,它也不起作用。
【问题讨论】:
标签: google-maps google-maps-api-3 api-key