chromium/third_party/blink/web_tests/http/tests/inspector-protocol/resources/iframe-third-party-cookie-child-request-storage-access.html

<!DOCTYPE html>
<script type="module">
 await internals.setPermission({name: 'storage-access'}, 'granted', "*", "*");
 await document.requestStorageAccess();

 const setCookieUrl = 'https://example.test:8443/inspector-protocol/network/resources/set-cookie.php?cookie='
      + encodeURIComponent('foo=bar; Path=/; Domain=example.test; Secure; SameSite=None;');
 await fetch(setCookieUrl);

</script>