[英]Content Security Policy directive
In my project i am using Angular 8 and node 10 version and using Syncfusion package for fowdiagram在我的项目中,我使用 Angular 8 和 node 10 版本并使用 Syncfusion 包进行 fowdiagram
Refused to load the image ' http://localhost:3332/favicon.ico ' because it violates the following Content Security Policy directive: "default-src 'none'".
拒绝加载图像“ http://localhost:3332/favicon.ico ”,因为它违反了以下内容安全策略指令:“default-src 'none'”。 Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback
请注意,'img-src' 未明确设置,因此使用 'default-src' 作为后备
I am getting this error when i do ng build --prod
执行
ng build --prod
时出现此错误
Can someone help me on this有人可以帮助我吗
When i execute the below command its working as expected当我执行以下命令时,它按预期工作
ng build --prod --base-href /anyname ng build --prod --base-href /anyname
We have checked in our sample and we could not able to replicate an issue at our end.我们已经检查了我们的样本,但最终无法复制问题。 Please share us more details such as modify the below sample.
请与我们分享更多详细信息,例如修改以下示例。
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Angular-Sample738660412示例: https : //www.syncfusion.com/downloads/support/directtrac/general/ze/Angular-Sample738660412
Regards, Shyam G问候, Shyam G
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.