gpt4 book ai didi

javascript - jQuery 中的 elem.setAttribute 破坏 SSL(混合事件内容错误)

转载 作者:可可西里 更新时间:2023-11-01 16:38:04 33 4
gpt4 key购买 nike

谁能解释一下这个错误是由于我的 slider 插件破坏了我的主页 SSL:

The page at 'https://...' was loaded over HTTPS, but displayed insecure content from 'http://....

在 Firebug 中,我得到这个指向 jQuery.js 中特定行的特定错误:

Loading mixed (insecure) display content on a secure page "http://...

elem.setAttribute( name, value + "" );

这是 jQuery 1.8.3。我不想使用 jQuery 2.0,因为 IE8 错误,而且它破坏了我的灯箱插件。

最佳答案

您收到此错误是因为您的网页使用 HTTPS,"all active mixed content delivered via HTTP on this pages will be blocked by default" .

为了更加清晰,“混合事件内容”是 "content that has access to all or parts of the Document Object Model of the HTTPS page"

因此,要修复此错误,您需要确保您使用的是使用 HTTPS 提供的引用(例如 javascript 文件)。如果它们在您自己的网站上,您应该能够将源链接从“http”更改为“https”。如果它们托管在远程位置,请查看它们是否也可通过 HTTPS 访问。

关于javascript - jQuery 中的 elem.setAttribute 破坏 SSL(混合事件内容错误),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21464422/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com