Last active
January 22, 2018 11:56
-
-
Save nathanharper/5a74db33dc7c98250027 to your computer and use it in GitHub Desktop.
axios default CSRF Token
This file contains hidden or 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
let csrfToken = 'lololololol'; | |
let axiosDefaults = require('axios/lib/defaults'); | |
axiosDefaults.headers.common['X-CSRF-Token'] = csrfToken; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment