C-Lodop 在域名下使用跨域问题
报错内容:
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
- 转到:
新版谷歌浏览器
- 转到:
chrome://flags - 搜索
insecure,添加域名,多个域名用,隔开
- 转到:
评论已关闭