do not retry on cors

This commit is contained in:
Valere
2026-03-20 09:29:57 +01:00
parent 29720d4376
commit 0a9798f522

View File

@@ -353,7 +353,8 @@ export async function doNetworkOperationWithRetry<T>(
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;