Google Maps JavaScript API RefererNotAllowedMapError

I know this is an old question that already has several answers, but I had this same problem and for me the issue was that I followed the example provided on and entered my domains in the format *.domain.tld/*. This didn’t work at all, and I tried adding all kinds of variations to this like domain.tld, domain.tld/*, *.domain.tld etc.

What solved it for me was adding the actual protocol too; http://domain.tld/* is the only one I need for it to work on my site. I guess I’ll need to add https://domain.tld/* if I were to switch to HTTPS.

Update: Google have finally updated the placeholder to include http now:

Google Maps API referrer input field

Leave a Comment