假设我有一个受ssl保护的网站。 它有一个视频标签,视频标签使用的网址为http://www.somesite.com/somevideo.mp4 。 我假设视频不会被加密。 现在我们假设视频来自同一个网站,因此前缀为https。 它会被加密吗?
现在假设网站不受SSL保护,但视频网址来自https网站。 视频会被加密吗?
一般来说,混合两者是否有问题? 例如,如果出现错误,来自同一站点的视频(假设该站点受ssl保护)被放入视频标签的src属性而没有https前缀,会发生什么?
谢谢
Suppose I have a website protected with ssl. It has a video tag, and the video tag uses a URL such as http://www.somesite.com/somevideo.mp4. I assume that the video would not be encrypted. Now lets assume that the video comes from the same website, and so has a prefix of https. Would it be encrypted?
Now lets suppose that the website is not protected with SSL, but the video URL comes from a https site that is. Will the video be encrypted?
And in general, is there a problem with mixing the two? For instance, if by a mistake a video from the same site (assuming the site is ssl protected) is put in the src attribute of the video tag without the https prefix, what will happen?
Thanks
最满意答案
虽然我没有使用html5视频,但我可以自信地说,http请求使用非加密传输; 和https请求使用加密传输。
当浏览器呈现https页面时,后续的http内容请求通常会产生警告,表明在页面的加密请求之后正在进行未加密的请求(例如,Chrome和Firefox在URL附近显示一点警告图标)。
当浏览器呈现http页面时,后续的https内容请求不会产生警告。
Though I haven't played with html5 video, I can confidently say that http requests employ a non-encrypted transport; and https requests employ an encrypted transport.
When a browser is rendering an https page, subsequent http content requests generally produce a warning that unencrypted requests are being made subsequent to the page's encrypted request (e.g. Chrome and Firefox show a little warning icon near the URL).
When a browser is rendering an http page, subsequent https content requests produce no warning.
更多推荐
https,video,视频,ssl,电脑培训,计算机培训,IT培训"/> <meta name="descriptio
发布评论