Axios: Problem with basic auth on GET request

Created on 20 Mar 2016  路  1Comment  路  Source: axios/axios

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 } }

Image of header sent

Thanks

Most helpful comment

Since you closed this yourself, can you mention what solved the problem for you?

>All comments

Since you closed this yourself, can you mention what solved the problem for you?

Was this page helpful?
0 / 5 - 0 ratings