Created
July 16, 2017 15:48
-
-
Save anonymous/61bcad26483daaa61b857fe101ea1ec4 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', $('meta[name="csrf-token"]').attr('content')); | |
next(); | |
}); | |
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.headers.common[‘X-CSRF-TOKEN’] = $('meta[name="csrf-token"]').attr('content'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment