googlemaps / js-samples

Samples for the Google Maps JavaScript v3 API
https://developers.google.com/maps/documentation/javascript/
Other
731 stars 819 forks source link

Google Maps JavaScript API error: RefererNotAllowedMapError #1225

Open Jean1dev opened 1 year ago

Jean1dev commented 1 year ago

Operating system

Ubuntu 20.04

Browser Version

104.0.5112.79

How severe is the bug?

moderate

Bug description

i follow this steps git clone -b sample-place-details https://github.com/googlemaps/js-samples.git cd js-samples npm i npm start and then "Oops! Something went wrong. This page didn't load Google Maps correctly. See the JavaScript console for technical details."

Steps to reproduce

git clone -b sample-place-details https://github.com/googlemaps/js-samples.git cd js-samples npm i npm start

Console log output

Google Maps JavaScript API error: RefererNotAllowedMapError
https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error
Your site URL to be authorized: http://localhost:3000/
beezoo10 commented 10 months ago

@Jean1dev just wondering if you were able to get this to work? I've allowed my API key to be used by my localhost