Google地图API引荐来源不允许 [英] Google maps API referrer not allowed

查看:249
本文介绍了Google地图API引荐来源不允许的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的网站上加载页面时,我收到了某些PC发来的错误 RefererNotAllowedMapError


RefererNotAllowedMapError

加载Google Maps JavaScript API的当前网址并未添加到允许的引荐来源列表中。请在Google云端控制台中查看您API密钥的推荐人
设置。



查看API密钥

它可以在我测试过的四台机器中的三台机器上运行在FireFox上。



通常这意味着域不是在我的API控制台中添加为引用者,但它绝对是,并且它绝对适用于其他机器。



其他人有此问题或能够提供一些指导?重新创建API密钥> console.developers.google.com 为我解决了这个问题。


I am getting the error RefererNotAllowedMapError from some PC's when I load a page on my site.

RefererNotAllowedMapError

The current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on Google Cloud Console.

See API keys

It works OK on FireFox from 3 out of four of the machines I have tested.

Generally this would mean that the domain is not added as a referer in my API console but it definitely is, and it definitely works on other machines.

Anyone else had this issue or able to provide some guidence?

解决方案

Recreating the API key at console.developers.google.com fixed the issue for me.

这篇关于Google地图API引荐来源不允许的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆