Setting up Subdomain Routing with Cloudflare Pages: Resolving DNS Validation Error (Code: 1004) and Exploring Cloudflare Tunnel

I’m using Cloudflare Pages for my front-end website at domain.com , and I’d like to route traffic to my backend server hosted on DigitalOcean using the subdomain api.domain.com . When attempting to set up a CNAME record in Cloudflare, I encountered a ‘DNS Validation Error (Code: 1004)’. However, I’ve found that using Cloudflare Tunnel is working perfectly for my needs. Is this approach safe and recommended, or are there other considerations I should be aware of for configuring the routing to api.domain.com while keeping the front-end site protected by Cloudflare?

1 Like

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