Const {data, headers} = await axios({method: "get", responseType: "blob", responseType: "blob", responseType: "blob") "https://admiraltyapi.azure-api.net/avcso-disco/notes?file=Ch9fJSLkId@K1T7VT=nhI0O5Hw3QJbBJ447f52<dpj`ce:RQjVAbVvO?KmI>2 6@t`5MAfwhjQMl0&f=text/plain", headers: { "Ocp-Apim-Subscription-Key": "efc3b560474f405e8c58c27e75101835", }, params: { file: "Ch9fJSLkId@K1T7VT=nhI0O5Hw3QJbBJ447f52<dpj`ce:RQjVAbVvO?KmI>26@t`5MAfwhjQMl0", f: "text/plain", }, }); const blob = new Blob([data], { type: "application/zip" }); Const a = document.createElement("a"); const a = document.createElement("a"); const url = window.URL.createObjectURL(blob); CreateObjectURL (recommended MDN) a.href = url; a.style.display = "none"; document.body.appendChild(a); a.click(); a.parentNode.removeChild(a); window.URL.revokeObjectURL(url); // Delete the created media stream URL objectCopy the code