zh-lx / code-inspector

Click the dom on the page, it will open your IDE and position the cursor to the source code location of the dom.
https://inspector.fe-dev.cn/en
MIT License
1.51k stars 113 forks source link

cros错误 #170

Closed kikyouink closed 1 month ago

kikyouink commented 1 month ago

提示:越详细的信息越有助于排查和解决问题,如果方便请加入本项目 README.md 最下面的 QQ 群或者微信群提供更详细的信息

插件版本

请提供使用的 code-inspector-plugin 版本号…… 0.10.0

Bug 类型

Bug 描述

请描述一下你的 bug,最好附上一张报错截图…… 在点击打开IDE时遇到了CROS错误,因为我本地的地址https://localhost:8080,通过改host映射为了https://test.local.com:8080,报错has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space local.

系统

你使用的打包器及版本

你使用的 web 框架

自检信息

zh-lx commented 1 month ago

这个是 chrome 浏览器安全策略引起的,可以通过如下方式解决: 访问 chrome://flags/,搜索找到 Block insecure private network requests 这一项,设置为 disabled 即可正常使用。

image
kikyouink commented 1 month ago

这个是 chrome 浏览器安全策略引起的,可以通过如下方式解决: 访问 chrome://flags/,搜索找到 Block insecure private network requests 这一项,设置为 disabled 即可正常使用。

image

谢谢