2016-07-15 112 views
0

昨天我試圖在網站上放置一個GoogleMap(javascript),但我仍然收到Google Maps API錯誤:RefererNotAllowedMapErrorRefererNotAllowedMapError Google地圖API

下面的步驟我已經採取了:

  • 創建的證書本網站(請求API密鑰和API管理這些HTTP referres添加引用接受請求被設置爲*.thewebsitedomein.nl/*

  • 驗證網站的域名(添加DNS記錄中CNAME記錄)

但我仍然得到這個RefererNotAllowedMapError

重新生成新密鑰沒有幫助,有人可以幫助我嗎? 有什麼我忘記了嗎?

謝謝! AHF

回答

0

在DNS中增加一個新的CNAME記錄(不帶www),並再次驗證網站後查看屏幕轉儲,顯示在谷歌地圖沒有javascript錯誤。

0

從谷歌地圖Error Messages文檔本身,

RefererNotAllowedMapError means that the current URL loading the Google Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings of your API key on the Google API Console.

還要檢查這個相關的SO問題:

+0

嗨! 在我的第一篇文章中,我已經對這些HTTP引用者接受請求的URL進行了插圖設置,它被設置爲'code' * .thewebsitedomein.nl/*'code' – AHF