Security advisory 2 addressed

This commit is contained in:
2026-08-26 15:35:10 +02:00
parent fec7836384
commit 0287305884
11 changed files with 32 additions and 24 deletions
+1 -1
View File
@@ -190,7 +190,7 @@ async function loadAdminState() {
return;
}
const sessionResponse = await fetch(`/api/auth/me?token=${encodeURIComponent(accessToken)}`);
const sessionResponse = await fetch('/api/auth/me', {headers: authHeaders()});
if (!sessionResponse.ok) {
localStorage.removeItem('linklogAccessToken');
showSignedOutState();
+1 -1
View File
@@ -47,7 +47,7 @@
return;
}
fetch(`/api/auth/me?token=${encodeURIComponent(token)}`)
fetch('/api/auth/me', {headers: {Authorization: `Bearer ${token}`}})
.then((response) => {
if (!response.ok) throw new Error('Session expired');
return response.json();