DEV Community

Discussion on: Do you use Axios or Fetch?

 
jasterix profile image
Jasterix

I've been reading about Axios interceptors and it seems like a cool way to address not only HTTP errors but async problems that can pop up

Thread Thread
 
antonioavelar profile image
António Avelar

You're right! You can also use request interceptors to add custom headers like an authorization token in every single request, removing the need to write repetitive code