             `<div class="success">‚úÖ NEW CSRF Token received: ${currentCsrfToken.substring(0, 20)}...<br>
                        Cookie set: ${data.cookieSet}<br>
                        Current cookies: ${document.cookie}</div>`;
                } else {
                    document.getElementById('token-result').innerHTML =
                        `<div class="error">‚ùå No CSRF token received</div>`;
                }
            } catch (error) {
                console.error('‚ùå Error g