-1👍
try using this
axios({
method: 'get',
url: 'https://www.coinspot.com.au/pubapi/v2/latest',
}).then((response) => {
console.log(response.data);
console.log(response.status);
console.log(response.statusText);
console.log(response.headers);
console.log(response.config);
});
Source:stackexchange.com