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

Merge pull request #4208 from misenhower/fix-axios-defaults

Add to axios defaults instead of overwriting them
parents f7b9a590 0d31e299
......@@ -27,10 +27,8 @@ window.Vue = require('vue');
window.axios = require('axios');
window.axios.defaults.headers.common = {
'X-CSRF-TOKEN': window.Laravel.csrfToken,
'X-Requested-With': 'XMLHttpRequest'
};
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = window.Laravel.csrfToken;
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* 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