内容安全策略指令
Content Security Policy directive
在我的项目中,我使用 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'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback
我在执行 ng build --prod
时收到此错误
谁能帮我解决这个问题
当我执行下面的命令时,它按预期工作
ng build --prod --base-href /anyname
我们已经检查了我们的示例,但我们无法在我们这边重现问题。请与我们分享更多详细信息,例如修改以下示例。
样本:https://www.syncfusion.com/downloads/support/directtrac/general/ze/Angular-Sample738660412
此致,
希亚姆 G
在我的项目中,我使用 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'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback
我在执行 ng build --prod
谁能帮我解决这个问题
当我执行下面的命令时,它按预期工作
ng build --prod --base-href /anyname
我们已经检查了我们的示例,但我们无法在我们这边重现问题。请与我们分享更多详细信息,例如修改以下示例。
样本:https://www.syncfusion.com/downloads/support/directtrac/general/ze/Angular-Sample738660412
此致, 希亚姆 G