Add handlers for non-successful responses from the panel

This commit is contained in:
Dane Everitt
2018-06-02 16:59:16 -07:00
parent ebb7b6de9b
commit 4209be021e
5 changed files with 21 additions and 2 deletions

View File

@@ -17,8 +17,8 @@ try {
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
window.axios.defaults.headers.common['Accept'] = 'application/json';
/**
* Next we will register the CSRF Token as a common header with Axios so that