MuxForms on Cloudflare Pages adds embed.js to your built HTML (Astro, Vite, or plain static). Allow https://your-project.pages.dev and your production custom domain on the form.
Docs
Cloudflare Pages ships static assets at the edge; MuxForms handles POST so you do not need a Worker for a contact form.
| Topic | Note |
|---|---|
| Worker | Not required for embed |
| Preview URLs | Add each *.pages.dev preview origin if you test there |
| Build output | Put snippet in layout or template |
| CORS | Dashboard allowlist |
After `npm run build`, the HTML that Pages publishes should include:
<div data-form-id="FORM_UUID"></div> <script src="https://www.muxforms.com/embed.js" defer></script>
Once Cloudflare proxies your domain, add `https://www.example.com` to the MuxForms form allowlist.
Same form on Pages preview and production once origins are listed.
Upgrade to Pro