内容安全政策:该页面的设置禁止自行加载资源(“ default-src”)

时间:2018-09-18 14:05:13

标签: angularjs node.js nginx content-security-policy

我的angular.js应用程序在本地计算机上运行良好,但是当我使用nginx将其部署在服务器上时,它给了我一个错误

    Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). Source: .vimvixen-console-frame {
  margin: 0;
 .... app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). Source: .vimvixen-hint {
  background-color: yel.... app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). Source: .vimvixen-console-frame {
  margin: 0;
 .... app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). app:1
Content Security Policy: The page’s settings blocked the loading of a resource at self (“default-src”). Source: .vimvixen-hint {
  background-color: yel.... app:1 

这就是我在浏览器中看到的内容

enter image description here 谁能帮我解决这个问题

1 个答案:

答案 0 :(得分:0)

此问题是当我禁用插件时,我在firefox上安装了vim vinex插件。我不再收到错误