Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BitCodeBard opened this issue May 31, 2024 · 1 comment

Comments

@BitCodeBard
Copy link

问题描述

@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

@BitCodeBard
Copy link
Author

Hi,可以帮忙支持下吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant