2025-11-04 10:19:07 +05:30
|
|
|
import axios from 'axios';
|
|
|
|
|
window.axios = axios;
|
|
|
|
|
|
2025-12-15 11:03:30 +05:30
|
|
|
axios.defaults.withCredentials = true;
|
|
|
|
|
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";
|
|
|
|
|
axios.defaults.headers.common["X-CSRF-TOKEN"] = document.querySelector(
|
|
|
|
|
'meta[name="csrf-token"]'
|
|
|
|
|
).content;
|
|
|
|
|
|