【发布时间】:2017-08-06 13:28:35
【问题描述】:
我需要在谷歌开发者控制台中保护我的付费谷歌地图 API 密钥。 我曾在 api 密钥设置中的“凭据”选项卡中尝试过此操作。 字段标签“接受来自这些 HTTP 引用者的请求......”。
如果我是对的,这个 *.dev2.urelay.xyz/* 一定对这个 URL 有用 - https://dev2.urelay.xyz/
但这对我不起作用,我在控制台中收到此错误
Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: https://dev2.urelay.xyz/
【问题讨论】:
标签: google-maps google-maps-api-3 google-api api-key