- 错误类型如图所示
The page at https://hostname was not allowed to run insecure content from http://localhost/wp-includes/js
- 解决方案
wp-config.php
末添加
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST']);
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST']);
if (!preg_match('/^(127\.|192\.168\.)/', $_SERVER['REMOTE_ADDR'])) $_SERVER['HTTPS'] = 'on';
// 对除了内网地址添加强制HTTPS