Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google maps API referrer not allowed

Tags:

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?

like image 639
bwash70 Avatar asked Sep 16 '15 05:09

bwash70


People also ask

Why is Google Maps API not working?

There are a several reasons why your google maps may not be working, the most common issue being no Google Map API key set or set incorrectly. To use the Google Maps JavaScript API, you must register your app project on the Google Cloud Platform Console and get a Google API key which you can add to your app.


1 Answers

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

like image 140
bwash70 Avatar answered Nov 02 '22 17:11

bwash70