fix(qa-lab): prevent dashboard API hangs (#107701)

This commit is contained in:
Alix-007
2026-07-15 11:45:57 +08:00
committed by GitHub
parent 1878c57a46
commit e9d76ae2a7
4 changed files with 122 additions and 31 deletions
+4 -3
View File
@@ -48,9 +48,10 @@ const allowedRawFetchCallsites = new Set([
bundledPluginCallsite("qa-lab", "src/gateway-child.ts", 489),
bundledPluginCallsite("qa-lab", "src/suite.ts", 330),
bundledPluginCallsite("qa-lab", "src/suite.ts", 341),
bundledPluginCallsite("qa-lab", "web/src/app.ts", 23),
bundledPluginCallsite("qa-lab", "web/src/app.ts", 31),
bundledPluginCallsite("qa-lab", "web/src/app.ts", 39),
// The QA dashboard calls its same-origin local API from the browser, where server SSRF helpers do not run.
bundledPluginCallsite("qa-lab", "web/src/http.ts", 8),
bundledPluginCallsite("qa-lab", "web/src/http.ts", 16),
bundledPluginCallsite("qa-lab", "web/src/http.ts", 27),
bundledPluginCallsite("qqbot", "src/engine/api/api-client.ts", 124),
bundledPluginCallsite("qqbot", "src/engine/api/media-chunked.ts", 554),
bundledPluginCallsite("qqbot", "src/engine/api/token.ts", 211),