调整了 legacy 服务的 CORS,所以这里把所有请求转发过去
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-31 23:19:13 +08:00
parent da63acccec
commit e79d768a6d

View File

@ -1,9 +1,10 @@
import axios from 'axios'
export const legacyClient = axios.create({
baseURL: import.meta.env.SSR
? 'https://legacy.passthem.top/api'
: '/api/legacy',
// baseURL: import.meta.env.SSR
// ? 'https://legacy.passthem.top/api'
// : '/api/legacy',
baseURL: 'https://legacy.passthem.top/api',
timeout: 6000,
withCredentials: true,
headers: {