2
I was looking at the documentation of Xios and saw that to pass the user and password it is necessary to use:
auth: {
username: 'janedoe',
password: 's00pers3cret'
},
I applied the same to my reactjs code:
axios.get(store.urlBase + 'api/teste?teste=' + teste+ '&teste2=' + teste2,{},{
auth: {
Username: 'janedoe',
Password: 's00pers3cret'
}
})
but when the api arrives the username and password value is empty, which can be done?
Note: By Postman it works!