调整了 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'
|
import axios from 'axios'
|
||||||
|
|
||||||
export const legacyClient = axios.create({
|
export const legacyClient = axios.create({
|
||||||
baseURL: import.meta.env.SSR
|
// baseURL: import.meta.env.SSR
|
||||||
? 'https://legacy.passthem.top/api'
|
// ? 'https://legacy.passthem.top/api'
|
||||||
: '/api/legacy',
|
// : '/api/legacy',
|
||||||
|
baseURL: 'https://legacy.passthem.top/api',
|
||||||
timeout: 6000,
|
timeout: 6000,
|
||||||
withCredentials: true,
|
withCredentials: true,
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user