Fix JS fetch credentials and CSV export from web UI
This commit is contained in:
@@ -12,7 +12,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if (logout) {
|
||||
logout.addEventListener('click', async (e) => {
|
||||
e.preventDefault();
|
||||
await fetch('/api/auth/logout', { method: 'POST' });
|
||||
await fetch('/api/auth/logout', { method: 'POST', credentials: 'include' });
|
||||
window.location.href = '/login';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user