Fix Too Many Redirects error when using a Cloudflare domain

When setting up a domain registered with Cloudflare to point to a website hosted with Vercel I ran into an error when trying to load the website with the domain. The error I received was too many redirects.

To fix the error go to the manage page for the domain, select the Update DNS configuration link, and then select the SSL/TLS section on the left menu to view the encryption mode page.

too-many-redirects-1a.png

The default option selected will be Flexible for the domain, to resolve the error change to either Full or Full (strict).

Reload the website and the Too Many Redirects error should be fixed.