Created
July 16, 2017 05:18
-
-
Save Oscartic/3e777e7744998b51eb70297dc5950f87 to your computer and use it in GitHub Desktop.
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
Vue.http.interceptors.push((request, next) => { | |
request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken); | |
next(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment