How do I get Google Maps API key to work on localhost?
I've created an API key and under referrers I add the following:
Accept requests from these HTTP referrers (websites) (Optional) Use asterisks for wildcards. If you leave this blank, requests will be accepted from any referrer. Be sure to add referrers before using this key in production. localhost
This doesn't work and if I exclude the API key it doesn't work, either.
in the form after "My web site URL:". The API key they give you works for your localhost.
Go to the Google Maps Platform > Credentials page. On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key. Click Close.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With