axios.interceptors.request.use(req => { // `req` is the Axios request config, so you can modify // the `headers`. req.headers.authorization = 'my secret token'; return req; });