Javascript 谷歌地图通过iframe嵌入时出错

Javascript 谷歌地图通过iframe嵌入时出错,javascript,html,google-maps,Javascript,Html,Google Maps,为什么当我尝试嵌入谷歌地图时,控制台会出现这么多错误,我可以修复它吗 此外,HTTPS协议必须匹配。JSFIDLE不提供SSL 可能是谷歌的错误:iframes和主页必须匹配协议(Http://和Https://) 错误:从中阻止了原点为“”的帧 访问原点为“”的帧帧 请求访问的协议为“https”,即正在访问的帧 有一个“http”协议。协议必须匹配。 注意:安全站点无法与不安全站点通信,但您可以使用它。@WebDeveloper JSFiddle未使用SSH,因此它仍然会出现错误。您的站点

为什么当我尝试嵌入谷歌地图时,控制台会出现这么多错误,我可以修复它吗


此外,HTTPS协议必须匹配。JSFIDLE不提供SSL


可能是谷歌的错误:

iframes和主页必须匹配协议(Http://和Https://)

错误:从中阻止了原点为“”的帧 访问原点为“”的帧帧 请求访问的协议为“https”,即正在访问的帧 有一个“http”协议。协议必须匹配。


注意:
安全站点无法与不安全站点通信
,但您可以使用它。

@WebDeveloper JSFiddle未使用SSH,因此它仍然会出现错误。您的站点是否安全(使用https
https
)?@WebDeveloper我发现了上述错误(正如我在回答中提到的),请检查此图像。你应该检查一下
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?sll=12.954170662980777,77.6309395&amp;sspn=0.45648029298930365,0.905093763534904&amp;t=m&amp;q=bangalore&amp;dg=opt&amp;ie=UTF8&amp;hq=&amp;hnear=Bangalore,+Bangalore+Urban,+Karnataka&amp;z=10&amp;ll=12.971599,77.594563&amp;output=embed"></iframe>
Invalid 'X-Frame-Options' header encountered when loading 'https://www.google.co.in/maps?sll=12.954170662980777,77.6309395&sspn=0.4564…alore,+Bangalore+Urban,+Karnataka&z=10&ll=12.971599,77.594563&output=embed': 'ALLOWALL' is not a recognized directive. The header will be ignored. about:blank:1
XHR finished loading: "https://www.google.co.in/maps/gen_204?imp=asl&jsv=461b&ei=Frv4UYjLO7GOiAfRzIHQDw". maps:2
2
Unsafe JavaScript attempt to access frame with URL http://jsfiddle.net/EMDyq/ from frame with URL https://www.google.co.in/maps?sll=12.954170662980777,77.6309395&sspn=0.4564…alore,+Bangalore+Urban,+Karnataka&z=10&ll=12.971599,77.594563&output=embed. The frame requesting access has a protocol of 'https', the frame being accessed has a protocol of 'http'. Protocols must match.
 %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_stars,mod_strr%7D.js:1893
XHR finished loading: "https://www.google.co.in/maps/gen_204?imp=ael&jsv=461b&ei=Frv4UYjLO7GOiAfRzIHQDw". %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_stars,mod_strr%7D.js:1615
Resource interpreted as Script but transferred with MIME type text/html: "https://www.google.co.in/maps/caching/public". %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_stars,mod_strr%7D.js:716
Resource interpreted as Script but transferred with MIME type text/html: "https://www.google.co.in/maps/caching/private". %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_stars,mod_strr%7D.js:716
Resource interpreted as Script but transferred with MIME type text/html: "https://www.google.co.in/maps/caching/public?q=123". %7Bmain,mod_util,mod_act,mod_act_s,mod_actbr,mod_appiw,mod_mg,mod_mssvt,mod_pphover,mod_rst,mod_stars,mod_strr%7D.js:716