diff --git a/vite.config.js b/vite.config.js index 8f50c0c..93e2b5c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,6 +2,10 @@ import { defineConfig } from "vite"; import laravel from "laravel-vite-plugin"; import vue from "@vitejs/plugin-vue"; import path from "path"; +import axios from "axios"; + +window.axios = axios; +window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; export default defineConfig({ plugins: [