fix: use supported redirect mode for Workers organization requests
Deploy EG-BIM QA Gateway / deploy (push) Successful in 1m24s

This commit is contained in:
root committed 2026-10-30 12:49:15 +09:00
1 parent c87e0aa0c1
commit ccf48c8224
8 files changed
+126 -4

No files matched your search

+2 -1
View File
@@ -160,7 +160,8 @@ export async function getOrgDirectory(env, { fetchImpl = fetch, now = Date.now,
const response = await fetchImpl(url.toString(), {
headers: { accept: 'application/json', 'X-Baron-Key-ID': config.keyId, 'X-Baron-Key-Secret': config.keySecret },
signal: controller.signal,
redirect: 'error'
// Workers supports manual/follow only. Reject 3xx below without forwarding credentials.
redirect: 'manual'
});
if (!response.ok) throw new Error('org_context_http_' + response.status);
const payload = await response.json();