lChat start');
    try {
      const resp = await fetch(`${CHAT_ORIGIN}/swirl/init-session/`, {
        method: 'GET',
        credentials: 'include'
      });
      if (!resp.ok) throw new Error(`Init failed: ${resp.status}`);

      const { token } = await resp.json();
      const csrfToken = getCookie('csrftoken');

      const iframe = document.getElementById('swirl-chat-iframe');
      iframe.src = `${CHAT_ORIGIN}/galaxy/pre-chat`;

      iframe.onload = () => {
        console.log('posting setLocalSto