Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save paveltretyakovru/badf425d3f3cc381ed9d46e3ead0cd8f to your computer and use it in GitHub Desktop.
Save paveltretyakovru/badf425d3f3cc381ed9d46e3ead0cd8f to your computer and use it in GitHub Desktop.
It's the note about the seting "Authorization" property to the axios requests headers
let webApiUrl = 'example.com/getStuff'
let tokenStr = 'xxyyzz'
axios.get(webApiUrl, { headers: {"Authorization" : `Bearer ${tokenStr}`}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment