如果我将https网站与非https视频混合

编程入门 行业动态 更新时间:2024-10-28 16:30:17
如果我将https网站与非https视频混合 - 会发生什么?(If I mix https websites with non https videos - what happens?)

假设我有一个受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

本文发布于:2023-07-04 06:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1019718.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:我将   与非   网站   视频   https

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!