File size: 563 Bytes
c3cd73e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
    <title>Logout</title>
    <script>
        window.onload = function() {
            fetch('/chainlit_tutor/logout', {
                method: 'POST',
                credentials: 'include'  // Ensure cookies are sent
            }).then(() => {
                window.location.href = '/';
            }).catch(error => {
                console.error('Logout failed:', error);
            });
        };
    </script>
</head>
<body>
    <p>Logging out... If you are not redirected, <a href="/">click here</a>.</p>
</body>
</html>