chromium/third_party/blink/web_tests/external/wpt/html/cross-origin-embedder-policy/resources/dedicated-worker.js

self.onmessage = (e) => {
  fetch(e.data, {mode: 'no-cors'}).then(() => {
    self.postMessage('LOADED');
  }, () => {
    self.postMessage('FAILED');
  });
};