on-internet
← Community

Google API Error RefererNotAllowedMapError [duplicate]

Stack Overflow ·

Im trying to create an application using the Google maps api. While running on my localhost the following code, it displays me in the console the following message: "Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error" <!DOCTYPE html> <html> <body> <div id="map" style="width:100%;height:500px"></div> <script> function myMap() { var myCenter = new google.maps.LatLng(51.508742,-0.120850); var mapCanvas = document.getElementById("map"); var mapOptions = {center: myCenter, zoom: 5}; var map = new

Comments

Sign in or sign up to comment and upvote.

No comments yet.