Update Vue Resource
@@ -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"
}
@@ -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();
});