admin管理员组文章数量:1287591
I am using Deezer Javascript SDK and loaded it over https.
<script src=".js"></script>
But from today Chrome and Firefox has problem, because Deezer SDK loading some script over https and Chrome rejected as insecure content.
Chrome console:
Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script '.php?l=cs'. This request has been blocked; the content must be served over HTTPS. playerBB.php:1 Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script '.js'. This request has been blocked; the content must be served over HTTPS. playerBB.php:1 Mixed Content: The page at '...' was loaded over HTTPS, but requested an insecure script '.js'. This request has been blocked; the content must be served over HTTPS.
I am using Deezer Javascript SDK and loaded it over https.
<script src="https://cdns-files.deezer./js/min/dz.js"></script>
But from today Chrome and Firefox has problem, because Deezer SDK loading some script over https and Chrome rejected as insecure content.
Chrome console:
Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script 'http://www.deezer./js_trad-v00340851.php?l=cs'. This request has been blocked; the content must be served over HTTPS. playerBB.php:1 Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script 'http://cdn-files.deezer./js/min/core-v00340851.js'. This request has been blocked; the content must be served over HTTPS. playerBB.php:1 Mixed Content: The page at '...' was loaded over HTTPS, but requested an insecure script 'http://cdn-files.deezer./js/min/live-v00340851.js'. This request has been blocked; the content must be served over HTTPS.
Share Improve this question asked Jan 15, 2015 at 14:45 user2700047user2700047 491 gold badge2 silver badges6 bronze badges2 Answers
Reset to default 9This 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./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!
本文标签: javascriptDeezer content is served over HTTPStack Overflow
版权声明:本文标题:javascript - Deezer content is served over HTTP - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741295864a2370812.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论