Skip to content

Instantly share code, notes, and snippets.

@Oscartic
Created July 16, 2017 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oscartic/3e777e7744998b51eb70297dc5950f87 to your computer and use it in GitHub Desktop.
Save Oscartic/3e777e7744998b51eb70297dc5950f87 to your computer and use it in GitHub Desktop.
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