1var instance = axios.create({
2 baseURL: 'https://some-domain.com/api/',
3 headers: {"X-Requested-With": "XMLHttpRequest"}
4});
1const axios = require('axios');
2
3async function makeGetRequest() {
4
5 let res = await axios.get('http://webcode.me');
6
7 let data = res.data;
8 console.log(data);
9}
10
11makeGetRequest();
12