Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios.post headers example

axios.post(
'https://example.com/postSomething', 
{ // this is the body
 email: varEmail, 
 password: varPassword
},
{
  headers: {
    Authorization: 'Bearer ' + varToken
  }
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #headers
ADD COMMENT
Topic
Name
5+1 =