Deezer content is served over HTTP

南笙酒味 提交于 2019-11-29 08:50:20

This happens when your page and remote resource are using different HTTP protocols: one uses HTTP and another uses HTTPS.

The preferred way to include third-party scripts is this one:

<script src="//cdns-files.deezer.com/js/min/dz.js"></script>

Removing https: or http: tells browser to load the document using same protocol as current page. This should eliminate security warnings.

when i set the url : <a href="http://127.0.0.1:8080/download/1.txt"></a> from a https request, it report error : Mixed Content: The page at 'https://127.0.0.1/index.html' was loaded over HTTPS, but requested an insecure resource 'http://127.0.0.1:8080/download/1.txt'. This request has been blocked; the content must be served over HTTPS. Failed to load resource: net::ERR_CACHE_MISS

when i added the target="_blank" to the url: <a target="_blank" href="http://127.0.0.1:8080/download/1.txt">, it works! , it works! it's well known that target="_blank" means opening the linked document in a new window or tab or a new request!

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