I host a small web site at an external host provider. When I open it from my iPhone, I get different results depending on how my iPhone is connected to the internet:
- When connection is made through WiFi, my page always opens and runs as expected
- When connection is made through Cellular, my page always produces the following error message:
On mobile Safari:
Safari cannot open the page because too many redirects occurred.
On mobile Chrome:
This page isn't working / redirected you too many times.
On mobile Opera:
This site can't be reached / too many HTTP redirects.
As far as I can tell, the only difference that decides the outcome is the internet connection type - WiFi vs. Cellular. I cannot find any other differences.
Since the site works fine through WiFi network, I ruled out a redirect loop on my site (that is the most commonly mentioned cause of "too many redirects" error). I also tried turning off cross-site tracking prevention, but the results remained the same. Am I missing something? What could be the cause of this strange behavior?
In case it is relevant, here are a few things about the web site itself:
- Web site is developed with ASP.NET Core
- I access site using https in both cases (via WiFi and via Cellular)
- Site is on a subdomain, which uses a wildcard certificate from the "top" domain
- Site uses ASP.NET Core "scaffold-ed" authentication, which uses redirects and cookies, and has "remember me" functionality.