Google maps javascript API V3 key disabled on certain computers

99封情书 提交于 2020-01-17 07:05:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!