Skip to content

Commit

Permalink
Merge pull request laravel#3957 from WayneHarris/vue-resource
Browse files Browse the repository at this point in the history
Update Vue Resource
  • Loading branch information
taylorotwell committed Sep 22, 2016
2 parents 4eeec60 + 76db100 commit f4606d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion resources/assets/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit f4606d2

Please sign in to comment.