tweak js file

This commit is contained in:
Taylor Otwell 2016-12-17 10:14:49 -06:00
parent b9db2864fe
commit e78ef3ee42
2 changed files with 14 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

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