odoo-026 加入打印控件后“允许跨域”

启动 lodop 后报错:

Access to script at 'http://localhost:8000/CLodopfuncs.js' from origin 'http://odoo.jointd.com.cn:1313' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `local`.
CLodopfuncs.js:1          Failed to load resource: net::ERR_FAILED

解决:

  • 浏览器输入 chrome://flags/
  • 搜索 block-insecure-private-network-requests,修改 Default 为Disabled
  • 重启浏览器
    odoo-026 加入打印控件后“允许跨域”_第1张图片

你可能感兴趣的:(Odoo,总结,javascript,chrome)