Closed v-stamenova closed 1 month ago
Fixed one issue by adding the complete url to the api key allowed websites in my maps api dashboard.
Fixed noApiKey error by adding api key to .env in the production folder.
Current errors on localhost
Current errors on production
@v-stamenova Might need to go through this together.
@v-stamenova Might need to go through this together.
Yeah, today?
Tim, since you asked, I got this message through the firefox console. It works as a charm in google chrome
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: https://www.weareinittogether.nl/contact
Uncaught (in promise) TypeError: a.getDiv() is undefined ona https://maps.googleapis.com/maps-api-v3/api/js/54/6-beta/intl/nl_ALL/map.js:2 xa https://maps.googleapis.com/maps-api-v3/api/js/54/6-beta/intl/nl_ALL/map.js:118
This is what I found in response...it might help https://stackoverflow.com/questions/35288250/google-maps-javascript-api-referernotallowedmaperror
Seems this has been fixed for the most part. Thing is that most of these issues happen because of client side restriction put up by browsers and adblockers. I'll leave it open for future work.
We could use https://www.openstreetmap.org instead