I have an API key. It\'s a \"Key for browser apps (with referers). It works fine, but I\'m not authorized when I try to use it on my local development server. I use MAMP and
UPDATE :
As of June 22, 2016 Google Maps V3 no longer support keyless access (any request that doesn't include an API key).
You can register for the key : https://developers.google.com/maps/documentation/javascript/get-api-key
and add it to your URL :
I have faced a similar issue with my application. I use the url without the client key for testing purposes and add the key before putting the code onto the production server. This is a workaround more than a solution and I am assuming that your usage for local testing will be low.
Testing server
Production Server
URL : https://developers.google.com/maps/documentation/javascript/examples/
If you check the following site and go to the basic map example you will find that the examples do not use a key. This was one of the differences between v2 and v3 of the maps that the key is not mandatory.
Keep in mind that omitting the key falls under the free Google Maps API licensing. If you need to track usage, you must supply at least the key. If you need more traffic, you need to supply your client ID (Google Maps for Work).
https://developers.google.com/maps/licensing