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

简介: Refused to load the image 'http://localhost:9527/favicon.ico'

今天启动vue-element-admin项目的时候

出现了这样的一个很奇怪的额问题


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


我并没有改动什么代码呀

而且在十分钟之前启动还是很正常的呀

还可以在浏览器访问

现在怎么访问不到了 呀?

而且浏览器界面还显示出一个这样的

Cannot GET /


我表示非常的疑惑

这个神奇的bug?

于是去百度了一下

没找到原因

于是我关闭vscode,重新打开

重新输入启动命令

(因为我知道,重启能够解决90%的不符合逻辑的问题~~~)

。。。

神奇的是,又可以了

刚刚的bug不见了???

页面又可以正常的进行访问了哟~~~


我选择记录一下啊

下次再出现的时候可以找到,,,

我遇到过这个奇葩的bug。。。。

不知道你们有没有遇到过~~

遇到过的话,能告诉我为啥吗?

有个前端小伙伴是这样说的~~~


最后,重要的话说三遍,重启能够解决99%的问题

相关文章
|
5月前
|
JavaScript
如何让Vue项目本地运行的时候,同时支持http://localhost和http://192.168.X.X访问?
如何让Vue项目本地运行的时候,同时支持http://localhost和http://192.168.X.X访问?
|
5月前
|
机器学习/深度学习 前端开发 JavaScript
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
118 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
2月前
|
JavaScript Java Spring
http://localhost:8282/user/findsomeuser[object%20Object]
这篇文章介绍了如何在Spring Boot应用中创建一个登录拦截器来检查用户登录状态,并在用户未登录时重定向到登录页面,同时展示了如何在控制器中处理特定请求并显示服务器时间,以及如何使用Thymeleaf在HTML页面中展示这个时间。
|
4月前
|
小程序
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
Failed to load local image resource Xx the server responded with a status of of 500 (HTTP/1.1 500)
101 4
|
Web App开发 JavaScript 前端开发
解决DevTools failed to load SourceMap Could not load content for .js.map HTTP error code 404 问题
解决DevTools failed to load SourceMap Could not load content for .js.map HTTP error code 404 问题
659 0
|
5月前
|
应用服务中间件 Android开发
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
Eclipse中启动tomcat后,无法访问localhost:8080(HTTP Status 404)
151 0
|
12月前
|
Kubernetes Linux Docker
Kubernetes v1.22.1部署报错2: Get “http://localhost:10248/healthz“
Kubernetes v1.22.1部署报错2: Get “http://localhost:10248/healthz“
|
SQL 关系型数据库 MySQL
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
3710 0
Navicat使用HTTP通道连接MySQL(远程mysql3306端口关闭或者只允许localhost链接状态)...
|
存储 NoSQL Java
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration报错问题处理
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
Uncaught DOMException: Blocked a frame with origin "http://localhost:8000" from accessing a cross-origin frame.
768 0
下一篇
无影云桌面