Skip to content

Worker code must switch to fetch/blob based creation #7566

@cramforce

Description

@cramforce

Creation of web workers from cross origin sources is not allowed unfortunately.

We need to instead

  • fetch the source via a CORS request
  • create a blob
  • launch the Worker with that.

See e.g. this example https://gist.github.com/roman01la/e7a7b879698574c45ca0

This requires the source itself to be CORS accessible, which, coincidentally I need to do anyway because of #7353. See cr/147554802 for that change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions