What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-14 05:26:11
Axios Req with Auth Token
const res = await axios.get('https://httpbin.org/basic-auth/foo/bar', { // Axios looks for the `auth` option, and, if it is set, formats a // basic auth header for you automatically. auth: { username: 'foo', password: 'bar' } }); res.statu... Add solution -
Javascript 2021-09-12 06:55:03
Axios GET Req with Basic Auth
const res = await axios.get('https://httpbin.org/basic-auth/foo/bar', { // Axios looks for the `auth` option, and, if it is set, formats a // basic auth header for you automatically. auth: { username: 'foo', password: 'bar' } }); res.statu... Add solution