antvis/G2

Do you want to work on this issue?

You can request for a bounty in order to promote it!

antv/g2 使用blob 协议加载worker,这在不允许blob 的环境中会不能正常执行 #6260

BitCodeBard posted onGitHub

问题描述

@antv/g2 中使用 URL.createObjectURL(blob) 创建 worker, 当页面中不允许使用blob 协议的woker时(譬如页面中使用csp 并将指令设置为 worker-src: 'xxx.example.com'), 当前代码不能正常工作, 能否支持在blob 协议不能支持的情况下,退回到主线程使用eval 去执行该段代码逻辑, 或者改成不使用 blob 协议进行资源加载; image

重现链接

No response

重现步骤

No response

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


Hi,可以帮忙支持下吗

posted by BitCodeBard 11 months ago

请问这个解决了吗

posted by ZoneLabyrinth 10 months ago

请问这个解决了吗

posted by zjcwill 10 months ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests