ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
``` import axios from 'axios' import storage from './storage' const http = axios.create({ //baseURL: process.env.API_ROOT, timeout: 40000 }); http.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded' //http.defaults.headers.post['Content-Type'] = 'application/json'; http.defaults.headers.post['Access-Control-Allow-Origin'] = '*'; http.defaults.withCredentials = true; ```