2012-11-25 98 views
22

我試圖使用包括谷歌地圖,但由於不匹配,控制檯拋出了幾個錯誤,但沒有明顯的不匹配,所以我假設它必須是谷歌地圖一側的功能/過程。使用http/https協議與匹配maps.google.com

根據this,與maps.google.com相似,iframe的腳本似乎發生了變化。

在控制檯中的錯誤是這樣的:(我正在在頁面加載至少30個錯誤)

Unsafe JavaScript attempt to access frame with URL http://www.developer.host.com/ from 
frame with URL https://maps.google.com/maps/msmsa=0&msid= 
212043342089249462794.00048cfeb10fb9d85b995&ie=UTF8&t= 
m&ll=35.234403,-80.822296&spn=0.392595,0.137329&z=10&output=embed. 

The frame requesting access has a protocol of 'https', the frame being 
accessed has a protocol of 'http'. Protocols must match. 

因爲我的網站是http和沒有使用https,而將地圖網址是http,爲什麼是不匹配發生,以及如何解決這個問題以使它們匹配?

+4

這不是你的錯,這是一個谷歌的錯誤http://code.google。 com/p/chromium/issues/detail?id = 43173 –

+0

你能告訴我們確切的嵌入代碼(HTML標記)嗎? – Bergi

+0