i have code axios :
var url =`laporan_type=${typeLaporan}&provinsi_id=${id_provinsi}&id_kabkota=${id_kabkota}&id_kecamatan=${id_kecamatan}&year=${year}&month=${month}`
axios({
method: 'get',
url: `${simkah}/laporan/reportWord?${url}`,
headers: {
'Access-Control-Allow-Origin': '*',
'Content-Type': 'application/json',
},
responseType: "blob"
}).then(
(response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', filename);
document.body.appendChild(link);
link.click();
}
).catch((error) => {
console.log(error);
});
and i get error CORS. Can you help me pls ( i have seen many topic and i still don't understand why it is not working