YouTube IFrame API使用HTTPS + HTML5生成混合内容警告 [英] YouTube IFrame API generates mixed content warning with HTTPS + HTML5
问题描述
当我使用HTML5模式下的iframe api在youtube上嵌入youtube时,它仍会使用HTTP提取实际流,这会生成混合内容警告。是否正确支持此用例?
When I embed youtube on an HTTPS page using the iframe api in HTML5 mode , it still pulls the actual stream using HTTP, which generates a mixed content warning. Is this usecase properly supported?
我发现 2011年的讨论表明事实并非如此。但是我只是尝试使用HTTPS访问CDN服务器并且它有效 - 但是它返回了错误的证书(google.com而不是youtube.com的东西)。
I found this discussion from 2011 which suggests it wasn't. However I just tried accessing the CDN server using HTTPS and it works - kind of - but it returns the wrong certificate (google.com instead of something for youtube.com).
有没有人设法使用HTML5中的IFRAME API在HTTPS页面上嵌入视频而不会触发混合内容警告(即Chrome中带有黄色警告标志的锁定)?
Has anyone managed to embed a video on a HTTPS page using the IFRAME API in HTML5 without triggering a mixed content warning (ie. the lock with the yellow warning sign in Chrome)?
谢谢
推荐答案
似乎(截至2012年10月)这是预期的行为,并且没有计划改变它: https://code.google.com/p/gdata-issues/issues/detail?id=2964&can=1&q=youtube%20https&colspec=API%20ID%20Type% 20Status%20Priority%20Stars%20Summary
It seems that (as of October 2012) this is the expected behaviour and there are no plans to change it: https://code.google.com/p/gdata-issues/issues/detail?id=2964&can=1&q=youtube%20https&colspec=API%20ID%20Type%20Status%20Priority%20Stars%20Summary
这篇关于YouTube IFrame API使用HTTPS + HTML5生成混合内容警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!