mirror of
https://github.com/HeyPuter/puter.git
synced 2026-02-14 01:39:12 -06:00
close #409
This commit is contained in:
@@ -1169,7 +1169,13 @@ window.trigger_download = (paths)=>{
|
||||
|
||||
urls.forEach(async function (e) {
|
||||
const anti_csrf = await (async () => {
|
||||
const resp = await fetch(`${window.gui_origin}/get-anticsrf-token`);
|
||||
const resp = await fetch(
|
||||
`${window.gui_origin}/get-anticsrf-token`,{
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': 'Bearer ' + window.auth_token,
|
||||
}
|
||||
},)
|
||||
const { token } = await resp.json();
|
||||
return token;
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user