Preview deployments under sub-domains

Hey folks! I created a staging.example.com sub-domain for my preview deployment instead of using web.pages.dev domains and followed this: https://community.cloudflare.com/t/subdomain-for-branch-not-working-error-code-522/475716 It now works, but as I use zero trust I got this error after entering my email to get the zero trust code. Any hint on what's going on?
No description
2 Replies
Hugo
Hugo3mo ago
I followed this: https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/ Same thing, it doesn't seems to work alongside Access (via mail code)
Cloudflare Docs
Add a custom domain to a branch · Cloudflare Pages docs
In this guide, you will learn how to add a custom domain (staging.example.com) that will point to a specific branch (staging) on your Pages project.
Hugo
Hugo3mo ago
[EDIT]: Solution - Add the sub-domain to he Access policy as well!
Want results from more Discord servers?
Add your server