I made a simple mistake. After uploading the new Construct Arcade package, I noticed during debugging that the webpage was using the cached main.js file, which caused the address changes I made not to take effect. After clearing the cache, everything worked fine. The script used is as follows:
globalThis.messagePort = await runtime.createWorker("./scripts/project/request_worker.js");