chromium/third_party/blink/web_tests/http/tests/security/mixedContent/resources/frame-with-insecure-fetch.html

<script>
fetch("http://example.test:8000/xmlhttprequest/resources/access-control-allow-lists.php?origin=*", {method: "POST"})
    .then(() => {
      window.opener.postMessage('FAIL: Fetch API succeeded unexpectedly', '*');
    }, e => {
      window.opener.postMessage('DONE', '*');
    });
</script>