Если контент не отображается, включите VPN.
/**
* @example saveHref(http://localhost/blob.csv, 'blob.csv')
*/
function saveHref(href, downloadName = '') {
const link = document.createElement('a');
link.setAttribute('href', href);
link.setAttribute('download', downloadName);
const event = document.createEvent('MouseEvents');
event.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
document.body.appendChild(link);
link.dispatchEvent(event);
}