This commit is contained in:
Nariman Jelveh 2024-07-18 16:06:45 -07:00
parent ae25711a13
commit eeda9fb568

View File

@ -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;
})(); })();