1
yuhaaitao OP Mixed Content: The page at 'https://yuhaitao.com/the-music-migu-sign-to-send-traffic/' was loaded over HTTPS, but requested an insecure stylesheet 'http://cdn.staticfile.org/normalize/2.1.3/normalize.min.css'. This request has been blocked; the content must be served over HTTPS.
(index):227 Mixed Content: The page at 'https://yuhaitao.com/the-music-migu-sign-to-send-traffic/' was loaded over HTTPS, but requested an insecure image 'http://image.yuhaitao.com/4f632767ac0d_CDB5/Screenshot_20151208140849_cmccwm.mobilemusic.png'. This content should also be served over HTTPS. (index):227 Mixed Content: The page at 'https://yuhaitao.com/the-music-migu-sign-to-send-traffic/' was loaded over HTTPS, but requested an insecure image 'http://image.yuhaitao.com/4f632767ac0d_CDB5/Screenshot_20151208140918_cmccwm.mobilemusic.png'. This content should also be served over HTTPS. (index):227 Mixed Content: The page at 'https://yuhaitao.com/the-music-migu-sign-to-send-traffic/' was loaded over HTTPS, but requested an insecure image 'http://image.yuhaitao.com/4f632767ac0d_CDB5/Screenshot_20151208143831_com.sunbelt.androidbutler.png'. This content should also be served over HTTPS. 之前文章的图片链接怎么换成 https? |
2
lhbc 2016-09-18 13:16:36 +08:00 1
1 、替换所有文件里的连接
2 、如果你确定 image.yuhaitao.com 支持 https ,但又懒得替换或者怕替换不完整,可以在头部加这个字段,现代浏览器会自动升级协议 Content-Security-Policy: upgrade-insecure-requests |
5
loading 2016-09-18 13:56:10 +08:00 via Android 1
加到 <style>,逃~
|
7
lhbc 2016-09-18 16:24:16 +08:00 1
@yuhaaitao 虚拟主机不能改 nginx 配置
可以在 meta 里加 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> |
8
JimmyCai 2016-09-18 17:25:15 +08:00 via Android 1
在 header.php 找
|
9
kawaiiushio 2016-09-18 20:13:12 +08:00 via iPhone 1
|
10
VmuTargh 2016-09-18 23:55:36 +08:00 via Android 1
At header.php
Solutions: replace/remove, CSP |
11
yuhaaitao OP @VmuTargh Solutions: replace/remove, CSP 添到那里?
index.php 是这样的。 <?php /** * Typecho Blog Platform * * @copyright Copyright (c) 2008 Typecho team ( http://www.typecho.org) * @license GNU General Public License 2.0 * @version $Id: index.php 1153 2009-07-02 10:53:22Z magike.net $ */ /** 载入配置支持 */ if (!defined('__TYPECHO_ROOT_DIR__') && !@include_once 'config.inc.php') { file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File'); exit; } /** 初始化组件 */ Typecho_Widget::widget('Widget_Init'); /** 注册一个初始化插件 */ Typecho_Plugin::factory('index.php')->begin(); /** 开始路由分发 */ Typecho_Router::dispatch(); /** 注册一个结束插件 */ Typecho_Plugin::factory('index.php')->end(); |
12
yuhaaitao OP 已解决,在默认主题 header.php 中按照 @lhbc 提到的在 meta 里加
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 替换'http://cdn.staticfile.org/normalize/2.1.3/normalize.min.css'为本地路径就好了。 chrome 终于全绿了 |