The key provided is not a valid Google API Key
google-maps-api-3
Solution
I have the similar problem as you today and I think I solved it.
First I am assuming that you have a google map api key already. I think what you need to do is to to go API Console - Google Code and click on `API access` on the left. You can see your api key and just below the key, `Referers:` shows your allowed referers. What you need to do is click `Edit allowed referers...` and then add
localhost/*
to allowed referers.
I am using a MAMP to host my html, and I monitor the request my browser sent to google for api and I get this header:
showing Referer as `localhost/*`
It takes several minutes for Google to process after you changed your Referer but it works fine for me afterwords.
Problem
I am getting error ``` Google has disabled use of the Maps API for this application. The provided key is not a valid Google API Key, or it is not authorized for the Google Maps Javascript API v3 on this site. If you are the owner of this application, you can learn about obtaining a valid key here: https://developers.google.com/maps/documentation/javascript/tutorial#Obtaining_Key ``` I have generated an API from api-console and using it for my local/local-host website but each time I am getting the above error. How can I show google maps on my localserver?