Subdomain for CF Worker doesn't work.. only on mobile browsers
Hello, I recently tried to host a React Router 7 site on Workers. The deployment itself was successful and the workers subdomain does work. Then I set up a custom subdomain which is accessible from my laptop, the general internet (at least pagespeed can), and curl. The weird thing is it cannot be accessed from mobile browsers. I tried making a request from curl within termux and it does return a web page as expected. I've tried Firefox and chrome, each loading for a few seconds and then errors out. Chrome throws an ERR_TOO_MANY_REDIRECTS. Btw it's https://designo.munthe.dev if you want to test yourself
Where should I begin debugging?
3 Replies
I just resolved the issue: turns out the SSL/TLS encryption mode is set to off. I turned that to full (strict) and boom everything worked fine
Cloudflare Docs
Always Use HTTPS
Always Use HTTPS redirects all your visitor requests from http to https, for all subdomains and hosts in your application.
And there's a troubleshooting page in the docs for this exact problem too... I guess I just didn't look hard enough
https://developers.cloudflare.com/ssl/troubleshooting/too-many-redirects/
Cloudflare Docs
ERR_TOO_MANY_REDIRECTS
Learn how to troubleshoot ERR_TOO_MANY_REDIRECTS when using Cloudflare SSL/TLS.