Firefox和Chrome屏蔽了YouTube视频和其他媒体 [英] Firefox and Chrome blocking youtube videos and other media

查看:819
本文介绍了Firefox和Chrome屏蔽了YouTube视频和其他媒体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何解决这个问题?我不想确保我的用户看到内容而不必按在此页面上禁用保护按钮。

How can I get around this? I wan't to make sure my users see the content without having to press the "disable protection on this page" button.

推荐答案

您要做的是在 http 连接上加载Youtube,而您自己的网站通过 https 提供连接,从而使中间攻击的人可以改变youtube的内容,从而影响你的网站。由于youtube不允许在 https 上加载视频,因为如果您的网站需要真正解决此问题,我无法真正解决此问题 HTTPS 。您必须禁用网站上的安全连接,或者不使用Youtube,无论您选择什么,您都必须接受加载的页面不安全。

What you're trying to do is load Youtube over an http connection whilst your own site is served over a https connection, thus making it possible for a man in the middle attack to change the content of youtube and thus affect your site. As youtube doesn't allow loading the videos over https as far as I can see there is no way to really solve this problem if your site needs to really work over https. Either you will have to disable the secured connection on your site or alternatively not use Youtube, whatever you choose you will have to accept that the loaded page will be insecure.

(顺便说一句,我不确定浏览器如何处理混合内容,因为加载youtube播放器可能超过 https ,但加载视频流超过 https 是不可能的,所以我用HTML5播放器推测它不起作用,使用flash播放器它会起作用,但我必须做更多测试以确保这一点)

(Btw, I am not sure how the browser treats mixed content, because loading the youtube player is possible over https, however loading the video stream over https is not possible, so I pressume that with the HTML5 player it won't work and with the flash player it will work, but I would have to do more testing to make sure of this)

这篇关于Firefox和Chrome屏蔽了YouTube视频和其他媒体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆