t</b> the CSRF token</button>
        </div>
        <div class="mt-2">
            <button type="submit" th:onclick="logout()">Logout with Javascript</button>
        </div>
        <script th:inline="javascript">
            function getCsrfToken() {
                var parts = document.cookie.split("XSRF-TOKEN=");
                if (parts.length == 2) {
                    return parts.pop().split(";").shift();
                }
            }

            function logout() {
                $.ajax({
   