diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e8cdc1..7c3bbec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ This is the changelog for [Authress Login](readme.md). * clear the `nonce` and `iss` parameters from the URL when they are set. * [Fix] Force a sessionCheck after a logout. * Validate logout redirect urls to ensure they are valid before attempting to log the user out. +* [Fix] enable iOS 'Load Failed' non-compliant HTTP Fetch retries. ## 2.4 ## * Prevent silent returns from `authenticate` when a different connectionId is used to have the user log in. diff --git a/src/httpClient.js b/src/httpClient.js index 4027d77..03f3db0 100644 --- a/src/httpClient.js +++ b/src/httpClient.js @@ -13,6 +13,7 @@ const errorMessages = new Set([ 'The Internet connection appears to be offline.', // Safari 16 'Network request failed', // `cross-fetch` 'fetch failed', // Undici (Node.js) + 'Load failed', // iOS Fetch failed to respond - https://stackoverflow.com/questions/71280168/javascript-typeerror-load-failed-error-when-calling-fetch-on-ios '' // Handle some HTML error page responses as well, or sometimes CDN is having problems, if the response includes an HTML Document, then for sure there was an issue ]);