问题
I have come across a weird behaviour of the google maps javascript api v3.
I have included the api on my website using the api key I generated in the developers console like so:
<script src="http://maps.googleapis.com/maps/api/js?key=MYKEY" type="text/javascript"></script>
When I now access the site it works without a problem. The access is logged in the google developers console as it should be. I can also access the map via my android phone and on the computers at my university. All those accesses are also logged.
But when the people I work for access the site from their office, the map does not show and the typical pop-up comes up:
Google has disabled use of the Maps API for this application. This site is not authorized to use the Google Maps client ID provided. If you are the owner of this application, you can learn more about registering URLs in the Getting Started chapter of the Google Maps API for Work documentation.
I know just leaving out the key from the request fixes this but I would like to get this to work. I have already spent hours browsing the web.
Any suggestions?
来源:https://stackoverflow.com/questions/28056809/google-maps-javascript-api-v3-key-disabled-on-certain-computers