Merge pull request #3957 from WayneHarris/vue-resource

Update Vue Resource
This commit is contained in:
Taylor Otwell 2016-09-22 10:06:36 -05:00 committed by GitHub
commit f4606d2bb9
2 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,6 @@
"laravel-elixir-webpack-official": "^1.0.2",
"lodash": "^4.14.0",
"vue": "^1.0.26",
"vue-resource": "^0.9.3"
"vue-resource": "^1.0.2"
}
}

View File

@ -26,7 +26,7 @@ require('vue-resource');
*/
Vue.http.interceptors.push((request, next) => {
request.headers['X-CSRF-TOKEN'] = Laravel.csrfToken;
request.headers.set('X-CSRF-TOKEN', Laravel.csrfToken);
next();
});