chromium/third_party/blink/web_tests/http/tests/security/mixedContent/resources/insecure-fetch-in-dedicated-worker.js

fetch("http://example.test:8000/xmlhttprequest/resources/access-control-allow-lists.php?origin=*")
  .then(res => res.text())
  .then(text => postMessage('LOADED'))
  .catch(e => postMessage('LOAD FAILED'));