js-samples icon indicating copy to clipboard operation
js-samples copied to clipboard

Google Maps JavaScript API error: RefererNotAllowedMapError

Open Jean1dev opened this issue 1 year ago • 1 comments

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/

Jean1dev avatar Aug 02 '22 23:08 Jean1dev

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

beezoo10 avatar Sep 08 '23 19:09 beezoo10