Mixed Content - Insecure Stylesheet

别说谁变了你拦得住时间么 提交于 2019-12-25 00:55:17

问题


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.

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.

Any help or suggestion?

Thanks


回答1:


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" />


来源:https://stackoverflow.com/questions/50368233/mixed-content-insecure-stylesheet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!