切换到免费的SSL WebHosting(000webhost),现在谷歌字体没有渲染,搜索和尝试了很多东西,重写文本的CSS代码不起作用,既不是JS,我试过链接字体URL https:没有协议(//),没有任何反应。
<link href="https://fonts.googleapis.com/css?family=News+Cycle&subset=latin,latin-ext" rel="stylesheet" type="text/css">
仅在Chrome中发生,在Opera和Firefox中渲染没问题。
奇怪的事实:当我用F12打开控制台并按下CTRL + F5时,谷歌字体渲染没问题,但只有当我打开控制台并重新加载时,当我正常进入网站时它才会渲染。太疯狂了。
这是控制台抛出的东西:
The FetchEvent for "https://fonts.gstatic.com/s/newscycle/v14/9Xe8dq6pQDsPyVH2D3tMQvk_vArhqVIZ0nv9q090hN8.woff2" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
The FetchEvent for "same link" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
The FetchEvent for "https://fonts.googleapis.com/css?family=News+Cycle&subset=latin,latin-ext" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
The FetchEvent for "same link" resulted in a network error response: an "opaque" response was used for a request whose type is not no-cors
2undefined
Failed to load resource: the server responded with a status of 404 ()
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
答案 0 :(得分:0)
输入了本地问题: 铬:// serviceworker-内部/
并删除与我的网站相关并且工作的服务工作者,如果在生产模式中发生这将是非常糟糕的。