Component preview doesn't work for code components in Safari
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3575072. -->
Reported by: [lauriii](https://www.drupal.org/user/1078742)
Related to !644
>>>
<h3 id="overview">Overview</h3>
<p>When trying to preview components in Safari, the HTTP request respond 401 and shows a HTTP authentication form.</p>
<p><img src="https://www.drupal.org/files/issues/2026-02-22/Screenshot%202026-02-22%20at%2014.48.58.png" alt=""><br>
<img src="https://www.drupal.org/files/issues/2026-02-22/Screenshot%202026-02-22%20at%2014.46.19.png" alt=""></p>
<p>Steps to reproduce (in Safari):</p>
<ol>
<li>Create a code component</li>
<li>Add component to library</li>
<li>Hover over component in library</li>
<li>Confirm that the HTTP authentication form displays</li>
</ol>
<h3 id="proposed-resolution">Proposed resolution</h3>
<p>Use srcDoc instead of src for component previews so assets that require authentication, such as the api/v0/auto-save ones in code components, are aware of the current session.</p>
<h3 id="ui-changes">User interface changes</h3>
issue