-
-
Notifications
You must be signed in to change notification settings - Fork 11.5k
Closed
Description
#### Summary
set baseURL in interceptors is not working.
const service = axios.create({
baseURL: 'http://localhost/'
});
service.interceptors.request.use(config => {
config.baseURL = 'dd'
console.log(config.url) // output : http://localhost/././../
return config;
}, error => {
// Do something with request error
console.error(error); // for debug
Promise.reject(error);
})
#### Context
- axios version: e.g.: v0.16.2
- Environment: e.g.: node vv8.0.0, chrome 59.0.3071.86, macOS 10.12
Metadata
Metadata
Assignees
Labels
No labels