我正在使用包含Bootstrap的Framework Yii2 . 我有关于混合活动内容的此错误:
阻止加载混合活动内容“http://localhost/my-web-site/web/assets/b9b53b8/fonts/glyphicons-halflings-regular.woff2”
我查了一下,这是Bootsrap提供的字体 . 我在localhost上使用't use it directly on my written code. But what seems strange to me is that I' m(使用xampp)但是 mixed active content
错误只能在使用 https
protocole时发生,我是对的吗?
我该如何删除此错误?为什么会这样?
EDIT
我认为这不是this question的重复,因为:
-
它发生在localhost(通过http而不是https)
-
导致错误的字体不是在cdn上,而是在本地路径上(“http://localhost/my-web-site/web/assets/b9b53b8/fonts/glyphicons-halflings-regular.woff2”) .
也许我错了,当我说这不是重复但是那么,你能指出我错过了什么吗?