Commit b5ae7aff authored by Taylor Otwell's avatar Taylor Otwell Committed by GitHub

Merge pull request #4068 from yuters/patch-1

Make axios compatible with Request::ajax()
parents 61b157f8 f2981650
...@@ -25,6 +25,7 @@ window.Vue = require('vue'); ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment