© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3y ago
That Geezer

I ve a Pages app with a custom domain

I've a Pages app with a custom domain, and I use Access in front of it to control who can access the entire site. Everything is blocked by default, apart from some public paths. There's a www. on the domain, also using Cloudflare, which points to an origin where we run a WordPress.

When APO is enabled on the origin, it causes a redirect loop problem on our Pages app.

1) We go to
https://console.rutherfordspunting.com/
https://console.rutherfordspunting.com/
, we are HTTP 302'd to
https://rutherfordspunting-pages.cloudflareaccess.com/cdn-cgi/access/login/console.rutherfordspunting.com?kid=
https://rutherfordspunting-pages.cloudflareaccess.com/cdn-cgi/access/login/console.rutherfordspunting.com?kid=
... which is our Access team/company name/URL.
2) We authenticate succesfully. Access' access log shows these authentications as successful, saying "Access granted". We get 302'd again to
https://console.rutherfordspunting.com/cdn-cgi/access/authorized?nonce
https://console.rutherfordspunting.com/cdn-cgi/access/authorized?nonce
....
3) That request then 302's us back to https://console.rutherfordspunting.com/
4) ...which goes back to step 1, and loops.

Took quite a while to figure this out. I'd love to understand what's going on. Is it something to do with the addition headers added on requests via APO, i.e.
cf-apo-via
cf-apo-via
?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Heres the custom domain I'm testing with
Cloudflare DevelopersCDCloudflare Developers / general-discussions
2y ago
i ve received a mail from a person from
Cloudflare DevelopersCDCloudflare Developers / general-discussions
3y ago
Hey guys I ve got a real issue which has
Cloudflare DevelopersCDCloudflare Developers / general-discussions
4y ago