Custom Branch Domain with Cloudflare Access fails

Hello everyone 🙂 As the title already says, if I want to access a preview deployment secured by Cloudflare Access. My branch on GitHub is called dev so I called the custom domain dev.<mydomain> - as soon as I visit dev.<mydomain> I have to enter my email and I receive a one-time-pin to access to preview deployment. As soon as I enter the pin I am redirected to a site with an error. Better said I am redirected to an 404 because the wierd url is not found (see attached screenshot). Accessing the deployment via its hash or the "normal" pages.dev url seems to work completely fine. Am I doing something wrong ? Thanks, David
13 Replies
Walshy
Walshy•2y ago
You'll need access over your custom domain too
F0rce
F0rceOP•2y ago
I did or better said that is what I am doing i wouldn't have blurred it if it was pages.dev
Walshy
Walshy•2y ago
do you have Access over the pages.dev too?
F0rce
F0rceOP•2y ago
jep but there it does not seem like access is enabled for it everyone can access the <hash>.<project_name>.pages.dev domain and everyone can access the <branch>.<project_name>.pages.dev domain
Walshy
Walshy•2y ago
ok so access isn't enabled?
F0rce
F0rceOP•2y ago
it is xd
Walshy
Walshy•2y ago
i mean if everyone can access, it doesn't sound like it :p what's the pages.dev and custom domain?
F0rce
F0rceOP•2y ago
F0rce
F0rceOP•2y ago
and there is a single rule that allows email adresses with one-time-pins
F0rce
F0rceOP•2y ago
DNS
F0rce
F0rceOP•2y ago
the page itself does know about the custom domain:
F0rce
F0rceOP•2y ago
the page is linked to your git repo - everything that is pushed to prod is deployed to tld -- everything deployed to dev (our development branch) should be accessable by dev.<ourdomain>
F0rce
F0rceOP•2y ago
thats why I asked. everything seems perfectly fine. but the login does not seem to work. and the deployments do not seem to be protected by access
Want results from more Discord servers?
Add your server