josdejong/workerpool

Is there a way to check `origin`?

Open

#513 opened on 2025年9月2日

GitHub で見る
 (10 comments) (0 reactions) (0 assignees)JavaScript (164 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (2,297 stars)
PR merge metrics
 (PR metrics pending)

説明

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

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

コントリビューターガイド