2012-11-25 97 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