Last active
September 12, 2022 06:15
-
-
Save DonzTea/a9df1fdaf1d3a053f3fa5e563a18a88a to your computer and use it in GitHub Desktop.
axios interceptors example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import client from 'axios'; | |
const axios = client.create({ | |
headers: { | |
Accept: 'application/json', | |
'Content-Type': 'application/json; charset=utf-8', | |
}, | |
}); | |
export default axios; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment