Google网络字体和SSL错误

dro*_*wly 19 ssl webfonts

我的网站与Google webfonts一起使用,直到用户点击网站的SSL部分.

此时,chrome会抛出部分编码错误,而我的cufon菜单会丢失它的字距.

我用这个css包括我的webfont:

@font-face {
src: local('Lusitana'), url(https://themes.googleusercontent.com/static/fonts/lusitana
/v1/tAIvAkRzqMJf8Y4fM1R7PXYhjbSpvc47ee6xR_80Hnw.woff) format('woff');
}
Run Code Online (Sandbox Code Playgroud)

我的js控制台然后给了我这个错误:

[已屏蔽] https://domain.com/ecommerce.php上的网页运行了来自http://fonts.googleapis.com/css?family=Lusitana:regular,700&subset=latin的不安全内容 .

任何想法我如何获得谷歌字体强制SSL?

mat*_*don 76

您是否尝试过https://使用//网址替换?请求应自动使用正确的协议.

  • 简单有效.很好的答案,值得接受. (6认同)