【问题标题】:Google Maps Embed API Rejection谷歌地图嵌入 API 拒绝
【发布时间】:2014-04-27 08:39:57
【问题描述】:

我来了

The Google Maps API server rejected your request. This IP, site or mobile application is not authorized to use this API key.

我的网站出现错误,即使我将浏览器引荐来源网址设置为 *.*


我有这些设置:



代码:

<iframe width="100%" height="600" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=Hamilton%20Christian%20Reformed%20Church%2049419&key=***************************x5w1gMU9tAoRPg"></iframe>

所有这些都是由Google's Map Embed tool 生成的。我尝试将允许的推荐人更改为*.mydomain.com/*,但没有成功。

有什么想法吗?

【问题讨论】:

    标签: html google-maps iframe google-maps-api-3 google-maps-embed


    【解决方案1】:

    使用referer *.*/* 或不使用任何referer。

    *.* 将匹配 domain.com 但不匹配 domain.com/filename.ext

    【讨论】:

    • 还是没有运气。我犯了同样的错误。我也尝试过使用实际域(*.mydomain.com/*),但没有成功。
    • 我已删除所有推荐人,但我仍然收到The Google Maps API server rejected your request. This IP, site or mobile application is not authorized to use this API key.。
    • 可能是缓存问题,换个浏览器试试(注意:刷新浏览器窗口时,包含的 iframe 通常不会刷新)
    • console.developers.google.com/project/xxxxxx/apiui/credential/… 上的“保存”按钮给我带来了麻烦。我必须按几次按钮并重新加载并重复,直到条目实际出现在列表中
    【解决方案2】:

    我遇到了与 Full Decent 相同的问题,因为保存按钮实际上并没有保存。单击它几次对其进行排序 - 您应该会在按钮上看到一个动画状态(如下所示),然后在它工作时被重定向到 API 凭据索引页面。

    【讨论】:

      【解决方案3】:

      查看您的浏览器发出的请求,在我的情况下,引荐来源网址设置为 www.google.com。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2017-04-21
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-11-18
        • 2014-11-16
        • 2014-07-11
        相关资源
        最近更新 更多