Help me to resolve CORS issue with axios in Reactjs

Job ID: 32560858

Budget: $15 – $25 AUD

Hello,
I am facing CORS issue when fetching data from 3rth party API by using axios in Reactjs.
More details will be provided via chatting.

axios.get(known_assets_url, { headers: {
'Content-Type': 'application/json',
// 'Access-Control-Allow-Origin' : '*',
// 'Access-Control-Allow-Methods':'GET,PUT,POST,DELETE,PATCH,OPTIONS',
} }).then((response) => {
this.known_assets = response.data;
this.fetchData();
}).catch(error => {
console.log(error);
});

If you can resolve it shortly, please write "Shortly" at the top of your bid.
If you are not confident, don't bid it not to waste our time.

Thanks,
Related categories: React.js RESTful API