Merge pull request #4068 from yuters/patch-1

Make axios compatible with Request::ajax()
This commit is contained in:
Taylor Otwell 2016-12-08 14:13:14 -06:00 committed by GitHub
commit b5ae7aff9f
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ window.Vue = require('vue');
*/ */
window.axios = require('axios'); window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/** /**
* Echo exposes an expressive API for subscribing to channels and listening * Echo exposes an expressive API for subscribing to channels and listening