调整了 legacy 服务的 CORS,所以这里把所有请求转发过去
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user