the code is as follows
var url = "{-sharp$apiHost-sharp}/aw/export?brand_ids="+brand_ids;
var settings = {
"async": true,
"crossDomain": true,
"url": url,
"method": "GET",
"headers": {"token": "{-sharp$smarty.session.pc_token-sharp}","os": "1"}
}
$.ajax(settings).done(function (response) {
// console.log(response);
});
where headers is the permission check, and the response returned in done is the file stream (a zip package). How to download this file stream normally in JS?