gpt4 book ai didi

ssl - 不确定如何通过 SSL 修复不安全的内容

转载 作者:太空宇宙 更新时间:2023-11-03 14:17:10 24 4
gpt4 key购买 nike

我的网站是here ,并在 Chrome 中访问它会在控制台中出现“加载不安全脚本”错误和不安全的内容错误。 Firefox 加载站点,但没有锁定。

我的网站完全使用 PHP,我不知道从哪里开始。控制台和 Firebug 表明该站点正在通过 HTTP 加载不安全的脚本,但我如何使其全部为 HTTPS?

提前致谢!

最佳答案

您的 HTML 包含许多指向 http:// 资源的链接,例如:

<link rel="stylesheet" type="text/css" href="http://portal.thespartaninstitute.com/...">

您需要放弃 http: 部分,只链接到 //portal.thespartaninstitute.com/... - 然后将使用 https 当页面以这种方式加载时。

关于ssl - 不确定如何通过 SSL 修复不安全的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17137499/

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