first commit
This commit is contained in:
11
resources/frontend/core/config/app.js
Normal file
11
resources/frontend/core/config/app.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import axios from 'axios';
|
||||
import httpInterceptor from '@/helpers/httpInterceptor';
|
||||
|
||||
axios.defaults.baseURL = `${window.location.origin}/api/`;
|
||||
axios.defaults.headers.common['X-REQUESTED-WITH'] = 'XMLHttpRequest';
|
||||
axios.defaults.headers.common['X-CATTR-CLIENT'] = window.location.host;
|
||||
axios.defaults.headers.common['X-CATTR-VERSION'] = process.env.MIX_APP_VERSION;
|
||||
|
||||
httpInterceptor.setup();
|
||||
|
||||
export default axios;
|
||||
Reference in New Issue
Block a user