简体   繁体   English

具有http外部链接的SSL网站

[英]SSL websites with http external links

I have a problem on my SSL website. 我的SSL网站上有问题。 I tried to add an external JavaScript link to my website. 我试图将外部JavaScript链接添加到我的网站。 The JavaScript link is http and my website which is https, locks the script link for be http. JavaScript链接为http,我的网站为https,将脚本链接锁定为http。 This is the code of the script in http: 这是http中脚本的代码:

  <div class="container radio"> <p>Próximo evento: 29/04/16</p> <script type="text/javascript" src="http://player.wavestreamer.com/cgi-bin/swf.js?id=1SCZICL137KEA3GK"></script> <script type="text/javascript" src="http://player.wavestreaming.com/?id=1SCZICL137KEA3GK"></script> </div> </div> 

Is there any way my site https display the content? 我的网站https有什么显示内容的方式?

The link of my site is this: https://www.insidecraft.com/radio.html 我网站的链接是这样的: https : //www.insidecraft.com/radio.html

My second website whose haven´t got SSL works perfectly with is exactly the same code: http://us.insidecraft.com/pruebas2/radio.html 我的第二个没有SSL的网站可以完美地使用它,它的代码完全相同: http : //us.insidecraft.com/pruebas2/radio.html

Thanks for your attention. 感谢您的关注。

This is because browsers block active mixed content. 这是因为浏览器会阻止活动的混合内容。 You could configure the browser to allow it (at least in firefox). 您可以配置浏览器以允许它(至少在firefox中)。 But this only works if you could change the configuration of all browser visiting your site (eg corporate-network). 但这仅在您可以更改访问您的站点(例如公司网络)的所有浏览器的配置时才有效。 Only other option is serving the script over HTTPS aswell. 唯一的其他选择也是通过HTTPS提供脚本。 As workaround you could also put it in an <script> tag inside the document, served securly. 解决方法是,也可以将其放在文档中的<script>标记中,并安全地提供。 Or copy the script to your HTTPS doamin. 或将脚本复制到HTTPS doamin。 MDN on mixed content 混合内容的MDN


If you load the page with your browsers development console opened, it should show an error saying that mixed active content has been blocked. 如果在打开浏览器开发控制台的情况下加载页面,则该页面应显示一条错误消息,指出混合的活动内容已被阻止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM