diff --git a/src/utils/http.ts b/src/utils/http.ts index 006edacf..5a5c201d 100644 --- a/src/utils/http.ts +++ b/src/utils/http.ts @@ -11,13 +11,13 @@ const isDevelopment = getNodeEnv() === 'development' const baseURL = isDevelopment ? '' : VUE_APP_BUILD_BASE_URL const http: AxiosInstance = Axios.create({ + withCredentials: true, baseURL: baseURL, timeout: 20000 }) http.interceptors.request.use( config => { - config.headers.cookie = document.cookie return config }, error => {