Warp - Zero Trust | [xxx].cloudflareaccess.com redirected you too many times

What is the name of the domain?

[xxx].cloudflareaccess.com

What is the error message?

ERR_TOO_MANY_REDIRECTS

What is the issue you’re encountering

I was using split tunnels for my WARP client using Zero Trust. Suddenly login page ([xxx].cloudflareaccess.com/warp) is redirecting to itself in an infinite loop, and thus I can’t login anymore.

What are the steps to reproduce the issue?

1 - Go to ([xxx].cloudflareaccess.com/warp).
2 - It goes to https://xxx.cloudflareaccess.com/cdn-cgi/access/login/xxx.cloudflareaccess.com?redirect_url=%2Fwarp&kid=e604a97179d06c810a822d0ad1b7a9a65db5b22fd5fa2ff2745fe089ce95d10a (kid doesn’t change)
3 - Then goes to [xxx].cloudflareaccess.com/warp again.
4 - Until browser stops the loop, it does 2-3 again and again.

Screenshot of the error

May I ask what SSL settings have you got selected under the SSL/TLS tab of Cloudflare dashboard for your domain name? Looks like it’s Flexible which causes such issues, instead should be Full (Strict).

Furthermore, are you using a valid SSL certificate at the origin host for the tunnel? Otherwise, you’d have to use and enable the NoTLSVerify option for your tunnel either via Dashboard or CLI (config.yml) as you’ve created and managing it.

Give it a try and reply back.

Here’s my setup: I’m not using any custom domain. I’ve configured Cloudflare Zero Trust to use “include” mode on split tunnels in the WARP client. Cloudflare provided me a team name and subdomain ([xxx].cloudflareaccess.com), which I don’t control (I guess, it seems I can’t do much with it.). As far as I understand, the WARP client functions as an app in Zero Trust, and the connection itself is working fine.

The problem arises when I try logging in through the client by clicking this button:

Screenshot 2024-11-05 at 11.59.59

Instead of directing me to the login page, it gets stuck in an endless loop and won’t allow me to log in. I still have two devices that are logged in and working fine, but new devices are unable to login, thus connect.

Ok nevermind. I solved it. Here’s the steps I’ve taken.

1 - Added google as a secondary login method.
2 - Added a test “app” to the app launcher.
3 - Opened the app launcher and there was a message that I should login and the methods for login was working.
4 - Then I went to [xxx].cloudflareaccess.com/warp, it launched the desktop app.

Now it works.

Going to log out and test on the other devices. If it’s still not working on other devices, I’ll update you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.