小编cma*_*tix的帖子

Chrome not honoring https in relative URLs

I having a site that loads perfectly fine in Firefox and IE, but is being blocked by Chrome. Chrome is complaining about mixed mode content, however all resources are accessed by relative URLs within the same domain.

From my understanding, a relative URL should use the same protocol as the "main" page that is being loaded. That being the case I have the following:

<link href="/assets/css/small.css" title="Small" rel="alternate stylesheet" type="text/css" />
<link href="/assets/css/large.css" title="Large" rel="alternate stylesheet" type="text/css" />
Run Code Online (Sandbox Code Playgroud)

两者都是相对URL.当通过HTTPS加载页面时,我从Chrome控制台获取以下内容(我更改了客户端隐私的域名):


    [blocked] …

ssl google-chrome

11
推荐指数
1
解决办法
4808
查看次数

标签 统计

google-chrome ×1

ssl ×1