We have some scenarios where the browser shows “too many redirects” during a web login for the mobile app. This is all handled by the Auth0 SDK and authenticating directly with Auth0 IDP. This is the error received.
Safari cannot open the page because too many redirects occurred.
What causes this error?
- This is a Safari-specific error. Refer to If Safari can't open the page because too many redirects occurred - Apple Support (NG).
- This might occur when opening a page that is redirected to another page, which is then redirected to open the original page. If a webpage redirects too many times, it might have been set up in a way that is causing a redirect loop. In that case, the owner of the page will need to correct the issue.
The issue might also relate to outdated redirect information in the browser cache or cookies. To find out:
- From the menu bar in Safari, choose Safari > Preferences, then click Privacy.
- Click Manage Website Data.
- Use the Search field to find the name of the redirecting website, then select the website and click Remove. Safari then removes all stored data for the website, including caches and cookies. This might sign you out of the website or change its behavior.
- Click Done, then close Safari preferences.
If the issue continues, repeat these steps, but instead of clicking Remove for the redirecting website, click Remove All to remove stored data for every website visited in Safari.
Another resolution to this issue is explained in this video:
Go to Settings > Safari > scroll down to Privacy & Security, toggle off Prevent Cross-site tracking , then scroll down to Advanced > Website Data and delete the page from the website data.