Refused to load the image 'http://localhost:8080/favicon.ico'

Refused to load the image ‘http://localhost:8080/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.

1.拒绝加载图像的http://localhost:8080/favicon。因为它违反了以下内容安全政策指令:“default-src‘none’”。注意,'img-src’没有被显式设置,因此’default-src’被用作回退。

Refused to load the image 'http://localhost:8080/favicon.ico'_第1张图片
问题出在打包项目的时候的两个点忘记去掉
Refused to load the image 'http://localhost:8080/favicon.ico'_第2张图片
![在这里插入图片描述](https://img-blog.csdnimg.cn/20191014095207482.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM4NjU1NjI0,size_16,color_FFFFFF,t_70
Refused to load the image 'http://localhost:8080/favicon.ico'_第3张图片

你可能感兴趣的:(Vue)