DEV Community

Discussion on: How To Use Axios in an Optimized and Scalable Way With React

Collapse
 
sapkotamadan profile image
Madan Sapkota
axios.interceptors.request.use(function (request) {
  request.headers['Content-Type'] = 'multipart/form-data';
  return request;
}, null, { synchronous: true });
Enter fullscreen mode Exit fullscreen mode

Some comments have been hidden by the post's author - find out more