Created
October 7, 2019 11:14
-
-
Save CryDeTaan/1e5b33c1df32a28a122559108575e65b to your computer and use it in GitHub Desktop.
Gist for medium post
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
/* ... SNIP ... */ | |
// Commnet out the line | |
//window.axios = require('axios'); | |
// Add the ES2015 formation | |
import axios from 'axios'; | |
window.axios = axios; | |
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment