๐ก Home ๐ Chapter ๐ Next
โกย GMapsBook.com is crafted by Jozef Sorocin (๐ขย Book a consulting hour) and powered by:
As we discussed in ๐ย Protecting the API key(s), key restriction is a security best practice.
Each API key can be restricted to a list of referrers (also called โoriginsโ or simply โwebsitesโ.)
If the key is used on a website that isnโt on this list, Google Maps responds with a RefererNotAllowedMapError
.
You are likely:
demo.gmapsbook.com
) or a sub-page (e.g. gmapsbook.com/abd/xyz.html
) which arenโt matching the referrer patters.localhost:xyz
which is purposefully excluded from the list of referrers.If you donโt have access to the Google Cloud Console, contact your site administrator or coworker responsible for Maps.
If you do have access to the Cloud Console: