I'm following a tutorial on the Google Maps API and I get the code of API but its still not showing me the map
I get this error :
Google Maps API error: Google Maps API error: RefererNotAllowedMapError
Header.php
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDLDV40Ut-yGLG9r4N629K8-Rv0dtQsZzQ"></script>
<body onload="initialize">
map.php
<script type="text/javascript">
function initialize() {
var myLatLng = { lat: 42.52501, lng: 2.938979 };
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: myLatLng,
scrollwheel: false,
draggable: true,
});
var image = 'logo.png';
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
icon: image
});
}
</script>