Insecure “video” over HTTPS

♀尐吖头ヾ 提交于 2020-01-24 23:43:11

问题


I have a site that is loading over 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.

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

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.

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 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.

Any ideas?

Thanks!


回答1:


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://stackoverflow.com/questions/27768568/insecure-video-over-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!