Search code examples
angularangular8content-security-policysyncfusion

Content Security Policy directive


In my project i am using Angular 8 and node 10 version and using Syncfusion package for fowdiagram

Refused to load the image 'http://localhost:3332/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback

I am getting this error when i do ng build --prod

Can someone help me on this


Solution

  • When i execute the below command its working as expected

    ng build --prod --base-href /anyname