Deezer content is served over HTTP
I am using Deezer Javascript SDK and downloading it over https.
<script src="https://cdns-files.deezer.com/js/min/dz.js"></script>
But as of today, Chrome and Firefox have problems because the Deezer SDK is loading multiple script over https and Chrome rejected as untrustworthy content.
Chrome console:
Mixed Content: A page with 'https: // ....' was loaded over HTTPS, but requested an insecure script ' http://www.deezer.com/js_trad-v00340851.php?l=cs . This request has been blocked; the content must be transferred over HTTPS. playerBB.php: 1 Mixed content: A page with 'https: // ....' was loaded over HTTPS, but requested an insecure script ' http://cdn-files.deezer.com/js/min/core-v00340851. js . This request has been blocked; the content must be transferred over HTTPS. playerBB.php: 1 Mixed content: The page in "..." was loaded over HTTPS but requested an insecure script ' http://cdn-files.deezer.com/js/min/live-v00340851.js ". This request blocked; content must be transferred over HTTPS.
source to share
This happens when your page and the remote resource use different protocols HTTP
, one uses HTTP
and the other uses HTTPS
.
The preferred way to include third party scripts is as follows:
<script src="//cdns-files.deezer.com/js/min/dz.js"></script>
Deleting https:
or http:
instructing the browser to load the document using the same protocol as the current page. This should remove the security warnings.
source to share
when i set url:
<a href="http://127.0.0.1:8080/download/1.txt"></a>
from an https request, it reports an error: Mixed content: the page in '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 transferred over HTTPS. Failed to load resource: net :: ERR_CACHE_MISS
when i added target="_blank"
to url:, <a target="_blank" href="http://127.0.0.1:8080/download/1.txt">
it works !, it works! it's well known what it target="_blank"
means to open a linked document in a new window or tab or new request!
source to share