本文介绍了HTTPS头问题与Chrome版本44.0.2403.xx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在苦苦挣扎,因为我已经安装了新的Chrome版本44.0.2403.xx。

I have been struggling since I have installed the new Chrome version 44.0.2403.xx.

我最初的问题是在我的网站的一些样式表是通过https载荷,但我的网站是只有HTTP。

My initial issue was that some stylesheet on my website were load over https, but my website is only http.

我用一句话preSS,所以我搜索的核心功能里面寻找到HTTPS添加到URL。

I use wordpress, so I have searched inside the core function to find where the HTTPS was added into the url.

罪魁祸首是 is_ssl()功能。字preSS基地HTTPS验证在 $ _ SERVER ['HTTPS'] 变量,而我设置为1。

The culprit is the is_ssl() function. Wordpress base is HTTPS verification over the $_SERVER['HTTPS'] variable, and mine was set to 1.

我发现过去的谷歌Chrome浏览器版本发出了一个头 HTTPs的= 1

I found out that the last Google Chrome version is sending a header HTTPs = 1.

我如何prevent这个头会导致问题到我的网站?

How can I prevent this header to cause problems to my website?

推荐答案

要解决我的问题,我已经启用 mod_header 在服务器上添加了此规则,以我的 appache2.conf 文件:

To solve my issue I have enabled mod_header on the server and added this rule to my appache2.conf file:

<IfModule mod_headers.c>
  RequestHeader unset HTTPS
</IfModule>

这篇关于HTTPS头问题与Chrome版本44.0.2403.xx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 12:06