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,
David13 Replies
You'll need access over your custom domain too
I did
or better said that is what I am doing
i wouldn't have blurred it if it was pages.dev
do you have Access over the pages.dev too?
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
ok so access isn't enabled?
it is xd
i mean if everyone can access, it doesn't sound like it :p
what's the pages.dev and custom domain?
and there is a single rule that allows email adresses with one-time-pins
DNS
the page itself does know about the custom domain:
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>
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