當我包括我的網頁下面的代碼瀏覽器的API密鑰:谷歌地圖使用Javascript - API密鑰無效或網站未授權
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBvjzyCJmLPnsrBjMXy1RTaRqZzTCtqZgw"></script>
我得到的錯誤:
This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthroizedURLMapError
在Google Developers Console中,我訪問了API & auth-> Credentials->接受來自這些HTTP引用(網站)的請求...然後輸入*.mywebsite.com/*
。我在這裏做錯了什麼?
可能重複[谷歌地圖錯誤:InvalidKeyOrUnauthorizedURLMapError(http://stackoverflow.com/questions/29571750/google-map-error-invalidkeyorunauthorizedurlmaperror) – geocodezip