]);

                const data = await response.json();
                console.log('üìû Response data:', data);

                // Check cookies after response
                console.log('üìû Cookies after request:', document.cookie);

                if (data.csrfToken) {
                    currentCsrfToken = data.csrfToken;
                    document.getElementById('csrf-input').value = currentCsrfToken;
                    document.getElementById('token-result').innerHTML =
           