混合内容-不安全的样式表 [英] Mixed Content - Insecure Stylesheet

查看:64
本文介绍了混合内容-不安全的样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在浏览器中,我收到以下错误:混合内容:" https://www.website.com/"上的页面已通过HTTPS加载,但要求使用不安全的样式表' http://fonts.googleapis.com/css?family=播放:400,700 ".该请求已被阻止;内容必须通过HTTPS提供.

In the browser, I am receiving following error: Mixed Content: The page at 'https://www.website.com/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Play:400,700'. This request has been blocked; the content must be served over HTTPS.

我找到了代码中调用样式表的位置,并使用https更改了地址:

I found where the stylesheets are called in the code, and changed the address with https:

<link href="http://fonts.googleapis.com/css?family=Play" rel="stylesheet" type="text/css" />

但没有成功,错误仍然存​​在.

but without success, The error is still there.

有什么帮助或建议吗?

谢谢

推荐答案

在Google字体链接中使用 https 肯定是有效的-只需更改浏览器后清空浏览器缓存样式表链接到

Using https in a Google fonts link definitely does work - just empty the browser cache after changing the stylesheet link to

<link href="https://fonts.googleapis.com/css?family=Play" rel="stylesheet" type="text/css" />

这篇关于混合内容-不安全的样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆