不安全的“视频”通过HTTPS [英] Insecure "video" over HTTPS

查看:798
本文介绍了不安全的“视频”通过HTTPS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个通过HTTPS加载的网站。

I have a site that is loading over HTTPS.

我在该网站上有一个HTML5音频元素(目前是Flash播放器的后备版),即加载一个Shoutcast URL。 Shoutcast URL使用常规HTTP URL加载,因为它似乎无法使用HTTPS。

I have a HTML5 audio element on that site (currently a fallback for a Flash player), that is loading a Shoutcast URL. The Shoutcast URL is loading using a regular HTTP URL, because it doesn't seem to work using HTTPS.

但是,Chrome显示该页面包含的元素不是安全,当我检查他的控制台时,我看到这样的信息:

However, Chrome is showing that the page includes elements that aren't secure, and when I check he console, I see this message:

混合内容:' https://mysite.com/ 是通过HTTPS加载的,但请求了一个不安全的视频' http://shoutcasturl.com:8000/ ;。此内容也应通过HTTPS提供。

Mixed Content: The page at 'https://mysite.com/' was loaded over HTTPS, but requested an insecure video 'http://shoutcasturl.com:8000/;'. This content should also be served over HTTPS.

有没有办法摆脱Chrome中的错误,以便网站显示为完全安全,没有任何错误?

Is there any way to get rid of the error in Chrome, so that the site shows up as fully secure, without any errors?

Shoutcast似乎不能通过HTTPS工作,尽管我认为该服务器上还没有针对该FQDN的证书,但它看起来不像向Shouutcast服务器添加SSL证书会改变任何内容。

Shoutcast doesn't seem to work over HTTPS, though I don't think there's a certificate on that server for that FQDN anyway, but it doesn't seem like that adding a SSL certificate to the Shouutcast server will change anything.

任何想法?

谢谢!

推荐答案

摆脱此警告的唯一方法是从安全位置加载所有外部资源。由于Shoutcast不支持SSL,只要您直接从他们加载资产,您的网站就不会完全安全。

The only way to get rid of this warning is to load all external resources from secure locations. Since Shoutcast doesn't support SSL, your site will not be fully secure as long as you are loading assets directly from them.

参见这个问题提供了一些关于解决问题的相当复杂的建议。

See this question for some fairly complicated suggestions on getting around the issue.

这篇关于不安全的“视频”通过HTTPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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