【发布时间】:2014-09-03 22:31:11
【问题描述】:
我正在构建一个 Web 应用程序并刚刚安装了 ssl。
除了通过不安全的连接加载字体时遇到的这两个错误之外,一切似乎都很好。控制台表明这是 Modernizr 正在做的事情,但我不知道在哪里以及如何修复它。
这是控制台输出:
The page at 'https://myawesomewebsite.com/' was loaded over HTTPS, but ran insecure content from 'http://themes.googleusercontent.com/static/fonts/rosarivo/v1/OGdIq-p0tOtBN2VMVvO9W_esZW2xOQ-xsNqO47m55DA.woff': this content should also be loaded over HTTPS.
modernizr-2.8.0.min.js:4
The page at 'https://myawesomewebsite.com/' was loaded over HTTPS, but ran insecure content from 'http://themes.googleusercontent.com/static/fonts/inconsolata/v5/BjAYBlHtW3CJxDcjzrnZCIbN6UDyHWBl620a-IRfuBk.woff': this content should also be loaded over HTTPS.
modernizr-2.8.0.min.js:4
我实际上是在使用 TypeKit 作为我的字体,所以我不知道这些 Google 字体在页面上的作用以及为什么 Modernizr 会加载它们。
【问题讨论】: