mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 14:03:42 +00:00
close #409
This commit is contained in:
parent
ae25711a13
commit
eeda9fb568
@ -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;
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user