Answers for "axios get request with headers example react"

1

axios get with headers

let auth = ``; //auth key
let url = ``; //api url

const axios = require(`axios`);
axios({
    method: 'get',
    url: url,
    headers: {
        "Authorization": auth
    },
}).then(function (res) {
    console.log(res.data)
});
Posted by: Guest on August-27-2021

Code answers related to "axios get request with headers example react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language