[Vuejs]-How do I get api data using axios and proxy?

-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);
 });

Leave a comment