为什么我收到“找不到有效摘要”的错误?

问题描述 投票:0回答:1

在我的react-react-app创建的reactapp中,当我尝试运行我的应用程序时,我突然出现chrome错误:

Failed to find a valid digest in the 'integrity' attribute for resource 'http://localhost:3000/static/js/0.chunk.js' with computed
SHA-256 integrity 'hW0einVybma+FCDLYbayWASTmGI9JBE1dkrmPvDzJXQ='. The
resource has been blocked.

然而在IE中它工作正常。我所做的就是更改Button组件上的标签。如何在chrome上避免此错误?

reactjs create-react-app
1个回答
-1
投票

听起来这个功能只是按照它的意图去做。

您是否在Chrome for Android浏览器中启用了压缩功能?谷歌可能会在将CSS发送到您的手机之前将其丢失,从而导致签名无效。

SSL可以防止这种情况发生。也许我们应该在PUBLIC_URL中查找https并根据它切换此功能。

https://developer.chrome.com/multidevice/data-compression

© www.soinside.com 2019 - 2024. All rights reserved.