报错信息:

Access to script at 'http://localhost:8000/CLodopfuncs.js?priority=1' from origin 'http://XXX.XXX.XXX.XXX:XXXX' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `loopback`.

这里以C-Lodop的报错为例,类似问题都可以尝试下面的解决方式

谷歌浏览器:

  • 浏览器地址栏输入 chrome://flags/
  • 搜索 block-insecure-private-network-requests,修改 Default 为Disabled
  • 如果搜索不到block-insecure-private-network-requests可以尝试搜索network将Local Network Access Checks,Local Network Access Checks for WebRTC,Local Network Access Checks for WebSockets,修改 Default 为Disabled
  • 重启浏览器

edge浏览:

  • 浏览器地址栏输入 edge://flags/
  • 搜索 block-insecure-private-network-requests,修改 Default 为Disabled
  • 如果搜索不到block-insecure-private-network-requests可以尝试搜索network将Local Network Access Checks修改 Default 为Disabled
  • 重启浏览器
Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐