Google字体在chrome中被视为不安全的脚本

时间:2014-10-11 21:27:38

标签: css google-chrome fonts secure-coding

当我在HTTPS页面中使用Google字体时,它被视为"不安全的脚本"在铬。

有没有解决这个问题的方法?

我得到了这个:

http://snag.gy/9FAx3.jpg

我正在使用@import导入它。

1 个答案:

答案 0 :(得分:2)

使用https或只是将协议保留在href中。例如:

<link href='//fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>