简体   繁体   English

Deezer内容通过HTTP提供

[英]Deezer content is served over HTTP

I am using Deezer Javascript SDK and loaded it over https. 我正在使用Deezer Javascript SDK并通过https加载它。

<script src="https://cdns-files.deezer.com/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和Firefox出现了问题,因为Deezer SDK通过https加载了一些脚本,而Chrome被视为不安全的内容而被拒绝。

Chrome console: Chrome控制台:

Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script ' http://www.deezer.com/js_trad-v00340851.php?l=cs '. 混合内容:“ https:// ....”页面通过HTTPS加载,但请求了不安全的脚本“ http://www.deezer.com/js_trad-v00340851.php?l=cs ”。 This request has been blocked; 该请求已被阻止; the content must be served over HTTPS. 内容必须通过HTTPS提供。 playerBB.php:1 Mixed Content: The page at 'https://....' was loaded over HTTPS, but requested an insecure script ' http://cdn-files.deezer.com/js/min/core-v00340851.js '. playerBB.php:1混合内容:“ https:// ....”页面已通过HTTPS加载,但请求了不安全的脚本“ http://cdn-files.deezer.com/js/min/core- v00340851.js '。 This request has been blocked; 该请求已被阻止; the content must be served over HTTPS. 内容必须通过HTTPS提供。 playerBB.php:1 Mixed Content: The page at '...' was loaded over HTTPS, but requested an insecure script ' http://cdn-files.deezer.com/js/min/live-v00340851.js '. playerBB.php:1混合的内容:“ ...”页面已通过HTTPS加载,但请求了不安全的脚本“ http://cdn-files.deezer.com/js/min/live-v00340851.js ”。 This request has been blocked; 该请求已被阻止; the content must be served over HTTPS. 内容必须通过HTTPS提供。

This happens when your page and remote resource are using different HTTP protocols: one uses HTTP and another uses HTTPS . 当您的页面和远程资源使用不同的HTTP协议时会发生这种情况:一种使用HTTP ,另一种使用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. 删除https:http:告诉浏览器使用与当前页面相同的协议加载文档。 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' . 当我从https请求中设置url: <a href="http://127.0.0.1:8080/download/1.txt"></a> ,它报告错误:混合内容:位于'https://127.0.0.1/index.html'已通过HTTPS加载,但请求了不安全的资源'http://127.0.0.1:8080/download/1.txt' This request has been blocked; 该请求已被阻止; the content must be served over HTTPS. 内容必须通过HTTPS提供。 Failed to load resource: net::ERR_CACHE_MISS 无法加载资源: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! 当我将target="_blank"到URL: <a target="_blank" href="http://127.0.0.1:8080/download/1.txt"> ,它可以工作! , it works! , 有用! it's well known that target="_blank" means opening the linked document in a new window or tab or a new request! 众所周知target="_blank"意味着在新窗口或新选项卡或新请求中打开链接的文档!

暂无
暂无

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

相关问题 API 数据超过 http 在通过 https 提供服务的站点中,脚本有“混合内容”错误 - API data over http in site served over https, script has “mixed content” error 来自Codeigniter网站上的Javascript文件中通过HTTP提供的内容不安全的内容警告 - Insecure Content Warning for content served over http from Javascript File on Codeigniter Site 具有相对URL的AJAX调用将通过HTTPS服务的网站的HTTP传递给 - AJAX calls with relative URLs are going to HTTP for a site served over HTTPS API请求被阻止,内容必须通过HTTPS提供 - API request blocked and the content must be served over HTTPS 作为通过 HTTPS 提供的服务,在同一域但不同端口上通过 HTTP 提供页面是否有任何安全隐患? - Are there any security implications of serving a page over HTTP on the same domain, but different port, as a service served over HTTPS? Chrome扩展程序出错-“混合内容:此请求已被阻止; 内容必须通过HTTPS投放” - Error with Chrome extension - “Mixed Content: This request has been blocked; the content must be served over HTTPS” Codeigniter - jquery.min.js:4 混合内容:内容必须通过 HTTPS 提供 - Codeigniter - jquery.min.js:4 Mixed Content: the content must be served over HTTPS 通过 HTTP 而不是 HTTPs 服务的 API 调用导致 React/Axios 出错 - API calls served over HTTP instead of HTTPs results in error in React/Axios 在https上阻止了Angular templateUrl。 内容必须通过HTTPS提供。” - Angular templateUrl blocked on https “This request has been blocked; the content must be served over HTTPS.” 如何解决此请求已被阻止; 内容必须通过 HTTPS 提供 - how to solve This request has been blocked; the content must be served over HTTPS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM