简体   繁体   English

Google Maps API密钥-街景视图禁止使用403

[英]Google Maps API key - 403 forbidden on Streetview

I'm trying to get a static streetview image, but I'm getting 403 forbidden. 我正在尝试获取静态的街景图像,但是我禁止使用403。 If I remove the key parameter in the query it works fine. 如果我在查询中删除key参数,它将正常工作。

The query: 查询:

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

I'm doing the query on an https site, https://bubbl.li and my config settings on https://console.developers.google.com are: 我正在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

The referer *.bubbl.li/* doesn't permit requests from https://bubbl.li , it's only valid for subdomains. 推荐人*.bubbl.li/*不允许来自https://bubbl.li请求,它仅对子域有效。

Add the referer 添加引荐来源

bubbl.li/*

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM