Skip to content

Is there a way to check origin? #513

@olfek

Description

@olfek

Normally, you can do something like this in the web worker:

addEventListener("message", (event) =>
{
    if (event.origin != self.origin && event.origin != "") return;
    // ...
});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions