Hi,
i am trying to do a GET request with basic auth, but the auth header are not send.
Here is the code:
axios.get(
'api/example',
{
headers: { 'Accept': 'application/json' },
auth: {
username: 'example',
password: 'passwdexample'
},
params: { sinceDays: 7 }
}
Thanks
Since you closed this yourself, can you mention what solved the problem for you?
Most helpful comment
Since you closed this yourself, can you mention what solved the problem for you?