Google Maps API Referer 403错误 [英] Google Maps API Referer 403 Error

查看:194
本文介绍了Google Maps API Referer 403错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站以非常沉重的方式使用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错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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