FleetCart/Themes/Storefront/resources/assets/public/js/axios.js
2023-12-03 14:07:47 +00:00

7 lines
196 B
JavaScript

import axios from "axios";
window.axios = axios;
axios.defaults.headers.common["X-CSRF-TOKEN"] = FleetCart.csrfToken;
axios.defaults.headers.common["X-Requested-With"] = "XMLHttpRequest";