[英]Stream shoutcast on HTTPS site from a different HTTP streaming server
Up until several weeks ago I was able to stream icecast and shoutcast on my HTTPS site.直到几周前,我才能在我的 HTTPS 站点上流式传输 icecast 和shoutcast。 This would create a "mixed content" warning but was never explicitly blocked.
这会产生“混合内容”警告,但从未被明确阻止。
Now I find that chrome is forcing the http://streaminglink
urls to load https://streaminglink
and I can't access the http audio anymore.现在我发现 chrome 正在强制
http://streaminglink
urls 加载https://streaminglink
并且我无法再访问 http 音频了。
Here is a code example in jPlayer这是 jPlayer 中的代码示例
$("#jquery_jplayer").jPlayer("setMedia", {
mp3:"http://149.202.79.68:8213/stream.mp3"
});
I expect chrome to load the http url but instead it is looking for the https and I get the following error in the console:我希望 chrome 加载 http url,但它正在寻找 https ,我在控制台中收到以下错误:
GET https://149.202.79.68:8213/stream.mp3 net::ERR_CONNECTION_CLOSED
获取https://149.202.79.68:8213/stream.mp3 net::ERR_CONNECTION_CLOSED
NOTE笔记
The https ^ - that's not coming from my code or configuration... =/ https ^ - 这不是来自我的代码或配置... =/
So it looks like this is default behavior for Chrome since 79. https://www.engadget.com/2019/10/04/chrome-security-block-http-content/所以看起来这是自 79 以来 Chrome 的默认行为。https://www.engadget.com/2019/10/04/chrome-security-block-http-content/
Broke my site.破坏了我的网站。 Thanks Google.
感谢谷歌。
you can now allow insecure content in the specific site settings您现在可以在特定站点设置中允许不安全的内容
chrome://settings/content/siteDetails?site=https%3A%2F%2F<SITE_DOMAIN> chrome://settings/content/siteDetails?site=https%3A%2F%2F<SITE_DOMAIN>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.