Refused to load the image because it violates the following Content Security Policy directive (favicon)

后端 未结 11 969
别那么骄傲
别那么骄傲 2020-12-09 15:07

When I start the server I get the following error:

Refused to load the image \'http://localhost:4200/favicon.ico\' because it violates the following

11条回答
  •  不思量自难忘°
    2020-12-09 15:33

    As others told already, the error is only masking the real problem.

    For me it was the fact that my global Angular CLI version was lower than the one of my project.
    Running npm i -g @angular/cli@ solved the problem and the real error could be displayed and fixed.

提交回复
热议问题