FleetCart/Themes/Storefront/resources/assets/public/js/axios.js

7 lines
196 B
JavaScript
Raw Permalink Normal View History

2023-12-03 14:07:47 +00:00
import axios from "axios";
window.axios = axios;
axios.defaults.headers.common["X-CSRF-TOKEN"] = FleetCart.csrfToken;
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";