内容安全策略:页面的设置阻止了自身加载资源(“default-src”)

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

我的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有谁可以帮我解决这个问题

angularjs node.js nginx content-security-policy
1个回答
0
投票

这个问题是我在我的Firefox上安装了一个vim vinex插件,当我禁用插件时。我不再收到错误了

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