内容安全策略:页面的设置阻止了资源的加载 - 仅在 Firefox 中?

Content Security Policy: The page's settings blocked the loading of a resource - only in Firefox?

我从一个月开始就在 Ubuntu 上使用 docker 图像在本地主机上开发一个页面。 今天我运行npm update buefynpm run prod(可能是我有docker容器后第一次使用npm)然后在Firefox中,我所有的js资源突然失效加载。

这里有一些检查工具的例子:

Content Security Policy: The page's settings blocked the loading of a resource at http://localhost:8005/js/modernizr/modernizr-2.8.3-respond-1.4.2.min.js ("script-src").

Content Security Policy: The page's settings blocked the loading of a resource at https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js ("script-src").

这只发生在 Firefox 的正常模式下。 当我处于隐身模式时,浏览器可以加载 Firefox 中的资源。 在Chrome任何模式下都可以毫无问题地加载资源。 我已删除 localhost 的 cookie,但问题仍然存在。

这可能是什么原因造成的?

我不小心将 Disable JS 插件设置为在 Firefox 中处于活动状态。这就是它在 Chrome 和 Firefox 隐身模式下工作的原因。