Answers for "axios default headers authorization"

0

add authorization header axios

// Send a GET request with the authorization header set to
// the string 'my secret token'
const res = await axios.get('https://httpbin.org/get', {
  headers: {
    'Authorization': 'my secret token'
  }
});
Posted by: Guest on July-11-2020
1

axios default headers authorization

axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
Posted by: Guest on September-29-2020

Code answers related to "axios default headers authorization"

Browse Popular Code Answers by Language