【问题标题】:Google Maps API key - 403 forbidden on StreetviewGoogle Maps API 密钥 - Streetview 上禁止使用 403
【发布时间】:2015-01-25 12:13:42
【问题描述】:

我正在尝试获取静态街景图像,但被 403 禁止。如果我在查询中删除key 参数,它就可以正常工作。

查询:

<img src="https://maps.googleapis.com/maps/api/streetview?size=584x300&location=46+Hester+Street+New+York+US&key=xxxxxxxxxxxxxxxxxxxxx">

我在 https 站点 https://bubbl.li 上进行查询,我在 https://console.developers.google.com 上的配置设置是:

REFERERS  
*.bubbl.li/*

Activated APIs
Google Maps JavaScript API v3       
ON
Static Maps API     
ON
Street View Image API       
ON

【问题讨论】:

标签: api google-maps google-maps-api-3 google-street-view


【解决方案1】:

referer *.bubbl.li/* 不允许来自 https://bubbl.li 的请求,它只对子域有效。

添加推荐人

bubbl.li/*

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-08-21
    • 1970-01-01
    • 1970-01-01
    • 2017-08-17
    • 1970-01-01
    • 2011-03-27
    • 2011-11-28
    • 1970-01-01
    相关资源
    最近更新 更多