From 5c8a637cf513bd5c4bcb05e823ebbe68a2c8aabd Mon Sep 17 00:00:00 2001 From: josc146 Date: Thu, 2 May 2024 14:48:16 +0800 Subject: [PATCH] fix remote customApiUrl --- frontend/src/utils/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/index.tsx b/frontend/src/utils/index.tsx index 71294b6..faeedfa 100644 --- a/frontend/src/utils/index.tsx +++ b/frontend/src/utils/index.tsx @@ -322,7 +322,7 @@ export async function getReqUrl(port: number, path: string, isCore: boolean = fa headers: { [key: string]: string } }> { const realUrl = getServerRoot(port, isCore) + path; - if (commonStore.platform === 'web') + if (commonStore.platform === 'web' || realUrl.startsWith('https')) return { url: realUrl, headers: {}