vue.js - 弃用 - 网站从网络请求子资源,但由于其用户的特权网络位置而只能访问该子资源

标签 vue.js google-chrome google-chrome-devtools vuejs3 vue-cli

如何在 Chrome 开发工具的控制台中禁用以下警告?

[Deprecation] The website requested a subresource from a network that it could only access because of its users' privileged network position. These requests expose non-public devices and servers to the internet, increasing the risk of a cross-site request forgery (CSRF) attack, and/or information leakage. To mitigate these risks, Chrome deprecates requests to non-public subresources when initiated from non-secure contexts, and will start blocking them in Chrome 92 (July 2021). See https://chromestatus.com/feature/5436853517811712 for more details.

最佳答案

我使用的是 Vue CLI,当应用程序启动时,终端中打印以下内容:

App running at:

- Local: http://localhost:8080/
- Network: http://192.168.100.100:8080/

我当时使用Network 并收到警告,更改为使用Local URL 为我消除了警告。

关于vue.js - 弃用 - 网站从网络请求子资源,但由于其用户的特权网络位置而只能访问该子资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67580495/

相关文章:

javascript - 路由时无法检索组件模板

javascript - bLazy 和 Vue.js - DOM 准备得不够快

google-chrome - 如何使用 headless chrome 屏幕截图设置 screenshot.png 的名称?

docker - 我可以使用dokku predeploy在docker容器中安装google chrome吗?

javascript - 在 Chrome 中使用 React 添加新的 DOM 项目不会保持预期的滚动位置

javascript - 使用 rxjs 时如何获取错误的堆栈跟踪?

vue.js - Vuex 状态改变不会让组件重新渲染?

javascript - 我可以使用 Chrome 开发工具添加资源吗?

javascript - 是什么导致我的突变观察者使用脚本出现此错误?

javascript - 未捕获的 TypeError : (0 , vue__WEBPACK_IMPORTED_MODULE_20__.reactive) 不是一个函数 - 在 Vue 2 中