问题描述
我的网站以非常沉重的方式使用Google地图API(3.0)。我必须使用Google API控制台注册我的应用程序。
在查阅者部分,我将 *。websitename.com/*
(开始时和结束时都有 *
),但是当我尝试从 http:// websitename访问地图时。
$我怎样才能写出查阅者来同时允许这两个
http://www.websitename.com
和
http://websitename.com
作为引用者?
例如,您必须使用2个查阅者
*。websitename.com/*
websitename.com/*
编辑:
请记住,有时需要5分钟生效。
My website uses the Google maps API (3.0) in a very heavy way. I had to register my application with Google APIs Console.
In the "referers" section I put *.websitename.com/*
(there is *
at the start and at the end), but when I try to access maps from http://websitename.com
it doesn't work and appear, and a Google message appears in the console saying it's unauthorized from this referrer (403 Error).
How can I write the "referers" to allow both
http://www.websitename.com
and
http://websitename.com
as referers?
There is no single pattern that matches both cases, you must use 2 referers
*.websitename.com/*
websitename.com/*
EDIT :Keep in mind that sometimes it needs 5 minutes for changes to take effect.
这篇关于Google Maps API Referer 403错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!