Fix it, step by step
- Cloudflare dashboard, your domain, DNS, Records.
- On each record for the hostname you connected to Lovable (the
Arecord, plusAAAAif Lovable listed one), click the orange cloud so it shows DNS only (gray). Lovable: set them to "DNS only (gray cloud) instead of Proxied (orange cloud)". - Delete any other
A,AAAAorCNAMErecord at the same name. Lovable: "remove every other A, AAAA, or CNAME record at that name". - Keep the
TXTrecord: host_lovable(or_lovable.<prefix>for a subdomain), value startinglovable_verify=. - Wait a few minutes. In Lovable: More, Domains, the three-dots menu on the domain, Check again, until it shows Active.
If you want to keep Cloudflare's proxy
Lovable supports it, but only when you connect the domain that way: enable Advanced, "Uses Cloudflare or similar proxy" while connecting. In proxy mode Lovable uses a CNAME record instead of an A record, and says to "Disable proxying while setup completes". Note Lovable's line: it "does not configure, validate, or monitor your CDN or proxy setup".
What 1001 and 1003 mean in Cloudflare's own words
| Error | Cloudflare's causes |
|---|---|
| 1001: DNS resolution error | A request reached a Cloudflare IP "for a non-existent Cloudflare domain"; a CNAME target "does not resolve"; or a domain not on Cloudflare has a CNAME pointing to one that is |
| 1003: Direct IP Access Not Allowed | "A client or browser directly accesses a Cloudflare IP address." Browse to the domain name, not an IP |
Neither Lovable nor Cloudflare explains exactly why a proxied Lovable record triggers these, so this page sticks to the documented fix.
Same domain setup on Vercel or Netlify?
- Vercel recommends connecting directly and, if you use Cloudflare, setting "the relevant Cloudflare records to DNS only". If you must proxy, use SSL mode Full (strict): "Flexible mode can cause a redirect loop".
- Netlify support: its service "is not designed to work optimally with another CDN 'in front of' our CDN" and recommends "disabling Cloudflare's proxying".
Neither documents 1001 or 1003 specifically; the gray-cloud setup is simply what both recommend.
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
Why does my Lovable domain show Cloudflare error 1001?
Lovable's docs say the 1001 and 1003 errors come from Cloudflare's proxy. Set your Lovable DNS records in Cloudflare to DNS only (gray cloud) and click Check again in Lovable.
Can I use Cloudflare proxy with a Lovable app?
Yes, if you connect the domain with Advanced, 'Uses Cloudflare or similar proxy'. Lovable then uses a CNAME record, and you keep proxying off until setup completes.
What is Cloudflare error 1003?
Direct IP Access Not Allowed: something opened a Cloudflare IP address directly instead of your domain name.
How long after fixing DNS does the Lovable domain work?
Lovable says to wait a few minutes and use Check again on the domain until it shows Active.
Related errors
- Supabase: Error sending confirmation email
- Vercel: build failed / exited with 1
- Supabase error 42501: permission denied
Sources
Read 2 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.
- Lovable docs: Connect a custom domain (FAQ: Cloudflare error 1001 or 1003): docs.lovable.dev/features/custom-domain-connect
- Cloudflare docs: Error 1001 DNS resolution error: developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1001/
- Cloudflare docs: Error 1003 Direct IP Access Not Allowed: developers.cloudflare.com/support/troubleshooting/http-status-codes/cloudflare-1xxx-errors/error-1003/
- Vercel KB: Using Cloudflare with Vercel: vercel.com/kb/guide/cloudflare-with-vercel
- Netlify Support guide: Cloudflare in front of Netlify: answers.netlify.com/t/support-guide-what-problems-could-occur-when-using-cloudflare-in-front-of-netlify/138
- reviewready CLI: one command that checks an AI app repo before it ships
- Exposed API key checker: find API keys committed to a repo or shipped to the browser
- Supabase RLS checker: find tables with RLS off or policies that let anyone read or write