简体   繁体   English

内容安全政策指令

[英]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.

相关问题 内容安全策略指令:拒绝加载字体 - Content Security Policy directive: Refused to load the font 内容安全策略指令:“img-src 数据:”错误 - Content Security Policy directive: "img-src data:" error Angular >= 8 的内容安全策略 - Content Security Policy with Angular >= 8 Angular 8 拒绝加载加载图像,因为它违反了以下内容安全策略指令 - Angular 8 refused to load load the image because it violates the following Content Security Policy directive 内容安全策略指令“script-src”的源列表在 safari angular 5 中包含无效源 - the source list for content security policy directive 'script-src' contains an invalid source in safari angular 5 由于内容安全策略指令,无法在生产中的 Angular 应用程序中保存 PDF 文件 - Can't save PDF file in the Angular app in production because of the Content Security Policy directive 拒绝加载图像,因为它违反了以下内容安全策略指令:“default-src 'none'”。 角度 8 - Refused to load the image because it violates the following Content Security Policy directive: "default-src 'none'". Angular 8 拒绝加载图像,因为它违反了以下内容安全策略指令(图标) - Refused to load the image because it violates the following Content Security Policy directive (favicon) 无法在生产中加载图像,违反内容安全策略指令:“img-src 'self' data - Cannot load images on production, violates Content Security Policy directive: "img-src 'self' data 内容安全策略问题 header - Issue with content security policy header
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM