简体   繁体   中英

SSL websites with http external links

I have a problem on my SSL website. I tried to add an external JavaScript link to my website. The JavaScript link is http and my website which is https, locks the script link for be http. This is the code of the script in 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?

The link of my site is this: 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

Thanks for your attention.

This is because browsers block active mixed content. You could configure the browser to allow it (at least in 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. As workaround you could also put it in an <script> tag inside the document, served securly. Or copy the script to your HTTPS doamin. MDN on mixed content


If you load the page with your browsers development console opened, it should show an error saying that mixed active content has been blocked.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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