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

解决:

  • 浏览器输入 chrome://flags/
  • 搜索 block-insecure-private-network-requests,修改 Default 为Disabled
  • 重启浏览器
  •  

但是对于实际项目,这样解决还是有很多问题。

推荐使用C-Lodop的最新版本来解决问题,亲测Version:6.5.7.7 无跨域问题!!

更多推荐