I am trying to create a chrome batch application using Angular 2. But I get the following error when trying to start my application:
EvalError: refuses to evaluate the string as JavaScript because "unsafe-eval" is not a valid script source in the following content security policy directive: "default-src" self 'blob: filesystem: chrome-extension- resource
-> Chrome extension evaluation: //aabbecghjjmmpbagelfmhllgaidcbnmn/app/boot.js
The contents of boot.js :
System.config({ packages: { app: { format: 'register', defaultExtension: 'js', "defaultJSExtensions": true, } } }); System.import('app/boot').then(null, console.error.bind(console));
I know that AngularJS (angular 1) has the ng-csp to fix this Content Security Policy error. Is there anything for Angular 2?
Is there a way to run Angular 2 in a packaged application?
source share