Permalink
d5d5aeb Feb 17, 2018
1 contributor

Users who have contributed to this file

31 lines (19 sloc) 640 Bytes

From 4.x to 5.x

BaseURL options and handling have been completely rewritten.

Please refer to the latest docs.

Default prefix is now / instead of /api.

You have to explicitly add /api/ in all requests.

credentials is now disabled by default.

For using old defaults:

{
  axios: {
    prefix: '/api',
    credentials: true    
  }
}

Default error interceptor removed

All lifecycle functions removed

You can now easily use a plugin to extend axios and add your custom logic there.

Please see Extending Axios section in docs.