【发布时间】:2020-08-18 21:29:13
【问题描述】:
我正在开发一个 wordpress 网站,当我从谷歌浏览器加载我的网站时,我发现以下错误:Mixed Content: The page at 'https://www.example.com/' was loaded over HTTPS, but requested an insecure font 'http://example.com/wp-content/themes/woodstock/fonts/woodstock/woodstock.woff?421wez'. This request has been blocked; the content must be served over HTTPS. 和 Mixed Content: The page at 'https://www.example.com/' was loaded over HTTPS, but requested an insecure font 'http://example.com/wp-content/plugins/woocommerce/assets/fonts/star.ttf'. This request has been blocked; the content must be served over HTTPS.
注意:我有另一个域名,但这是一个示例 我尝试安装许多安全的 SSL 插件,但它并没有改变任何东西。
【问题讨论】:
-
您的页面正在请求使用 HTTP URL 而不是 https 的一些资源
-
您需要确保您的网站设置为 HTTPS - 查看 wp_options 表以确保您的域设置为 HTTPS。您还可以使用 WP Migrate DB 之类的工具将数据库中的所有 HTTP 更新为 HTTPS。这可能是一个更好的方法。
-
看看我的请求发起者链:mydomainname.net(使用https)然后mydomainname.net/wp-content/themes...(使用http)
标签: wordpress http woocommerce https