From 0a9798f52220e268123b562049c3f31e398e9ba7 Mon Sep 17 00:00:00 2001 From: Valere Date: Fri, 20 Mar 2026 09:29:57 +0100 Subject: [PATCH] do not retry on cors --- src/utils/matrix.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/matrix.ts b/src/utils/matrix.ts index 4e3ae3c32..02c728a42 100644 --- a/src/utils/matrix.ts +++ b/src/utils/matrix.ts @@ -353,7 +353,8 @@ export async function doNetworkOperationWithRetry( return await operation(); } catch (e) { currentRetryCount++; - const backoff = calculateRetryBackoff(e, currentRetryCount, true); + const backoff = calculateRetryBackoff(e, currentRetryCount, + false /** Do not retry CORS */); if (backoff < 0) { // Max number of retries reached, or error is not retryable. rethrow the error throw e;