fix: route zai-web (and other registry-entry web-cookie providers) connection-test cookie probe through the configured proxy (#7058) (#7192)

This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-07-14 21:13:53 -03:00
committed by GitHub
parent 005199ceb3
commit 3729967cf6
4 changed files with 111 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ export async function validateWebCookieProvider({
const baseUrl = normalizeBaseUrl(entry.baseUrl || "");
const testUrl = `${baseUrl}/models`;
const res = await directHttpsRequest(
const res = await validationRead(
testUrl,
{
method: "GET",
@@ -164,7 +164,7 @@ export async function validateWebCookieProvider({
Cookie: cookie,
},
},
10_000
isLocalProvider(provider)
);
if (res.status === 401 || res.status === 403) {