mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-26 19:32:46 +00:00
Add Authorization header to deletion request
This commit is contained in:
@@ -124,7 +124,10 @@ async function UIWindowFinalizeUserDeletion (options) {
|
||||
return fetch(apiUrl, {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${puter.authToken}`,
|
||||
},
|
||||
body: JSON.stringify(body),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user