Trying to secure a CF pages site with custom auth; getting "too many redirects" error
I'm trying to use ZeroAuth to protect access to a site that's hosted on CF pages. However, instead of the default email OTP code, I've set up a custom auth server that I'd like to use. But after successfully logging in, I get a "too many redirects" error instead of the page loading.
Note: This happens both on the custom domain as well as the
.pages.dev
one, but fwiw the .pages.dev site will load fine if you manually reload it after logging in and getting that above error.2 Replies
I had faced this problem few weeks back while protecting a pages application with CF Zero trust but don't remember how I fixed it. I spend some good amount of time on zero trust and concluded that it works well with server side applications ONLY and so making it work with a client side app is not worth the effort.
<bump>