Security advisory 2 addressed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user