title: Cookies don't get attached even after using storage API
body: <pre><code>const iframe = document.createElement(&quot;iframe&quot;);
  iframe.sandbox.add('allow-scripts', 'allow-storage-access-by-user-activation', 'allow-same-origin');
  iframe.onload = function () {
      window.addEventListener('load', () =&gt; {
          document.getElementById('test-button').addEventListener('click', () =&gt; {
              getStorageAccess().then(_ =&gt; {
                  var xhr = new XMLHttpRequest();
                  xhr.open('POST', 'https://example.net/v1/set-key-authorization-cookie/cb325a10-9404-4f77-b615-319415fa945a', true);
                  xhr.setRequestHeader('Content-Type', 'application/json');
                  xhr.withCredentials = true;
                  xhr.send('{&quot;KeyAuthorizationToken&quot;: &quot;eyJhbGciOiJFUzI1NiIsImtpZCI6Ij&quot;}');
                  xhr.onreadystatechange = function () {
                      if (this.readyState == this.HEADERS_RECEIVED &amp;&amp; this.status == 200) {
                          var xhr2 = new XMLHttpRequest();
                          xhr2.open('GET', 'https://example.net/v1/get-key/cb325a10-9404-4f77-b615-319415fa945a?encrypted-key-container=eyJhbGciOiJFUzI1Ni', true);
                          xhr2.withCredentials = true;
                          xhr2.send(null);
                      }
                  }
              });
              console.log(&quot;The iframe is loaded&quot; + getStorageAccess());
          });
      });
  };
  document.body.appendChild(iframe);
  </code></pre>
  <p>My inner request xhr2 needs some cookies from xhr request. <code>getStorageAccess</code> promise is resolved but no cookies in request.</p>