const xhr = new XMLHttpRequest();
xhr.responseType = 'blob';
xhr.onload = function () {
const blob = xhr.response;
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = '파일명';
link.click();
URL.revokeObjectURL(link.href);
};
xhr.open('GET', '파일다운로드url');
xhr.send();
이렇게하면 될수도 있습니다