‚úÖ Auto-generated CSRF Token found in cookie: ${currentCsrfToken.substring(0, 20)}...<br>
                        This token was automatically set when the page loaded!</div>`;
                } else {
                    // Try to get current token from server
                    const response = await fetch('/csrf-token/current', {
                        method: 'GET',
                        credentials: 'include'
                    });

                    if (response.ok) {
                     