mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +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) {
|
urls.forEach(async function (e) {
|
||||||
const anti_csrf = await (async () => {
|
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();
|
const { token } = await resp.json();
|
||||||
return token;
|
return token;
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user