diff --git a/frontend/src/rpc/admin-api.ts b/frontend/src/rpc/admin-api.ts index 08660db..4fb3ee8 100644 --- a/frontend/src/rpc/admin-api.ts +++ b/frontend/src/rpc/admin-api.ts @@ -38,7 +38,7 @@ export const fetchAdminAPI = async ( const contentType = response.headers.get("Content-Type"); // Parse response based on content type - if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) { + if (contentType?.includes("application/json")) { const result = await response.json(); return result; } else { diff --git a/frontend/src/shared/rpc/common-function.ts b/frontend/src/shared/rpc/common-function.ts index 1c36b4d..f8ee831 100644 --- a/frontend/src/shared/rpc/common-function.ts +++ b/frontend/src/shared/rpc/common-function.ts @@ -46,7 +46,7 @@ export const fetchAPI = async ( const contentType = response.headers.get("Content-Type"); // Parse response based on content type - if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) { + if (contentType?.includes("application/json")) { const result = await response.json(); return result; } else if (contentType && contentType.includes("text/event-stream")) {