I was just reading a css-tricks article on how to make you're API request DRY using axios HERE. Now reacting something like this would work fine :
export default axios.create({
  baseURL: 'https://mysite/v3',
  headers: {
    'content-type': 'application/json'
  }
})
The thing is what if i want to pass additional parameters to this instance ? I.E. i have another parameter that i would like to the header like so:
'X-USER-ACCESS-TOKEN': sessionToken,
Also what if i have multiple other options to pass to the header ?
 
     
    