Captcha showing error in Framer Preview in HubSpot

We are adding a form to a page in Framer (CMS Tool similar to webflow), and we are seeing an error where the Captcha should be. Can anyone tell me why this is happening and how to fix?

Great question @Huntscape-Ops!
Tagging some of our top contributors who may have run into this before and can point you in the right direction :backhand_index_pointing_down:

@ChristinaKay @karstenkoehler and @OPerek-Clark have you seen this one before? :blush:
Cassie, Community Manager

No one has responded. Any other ideas for help?

Try using this component. I am also using this on multiple websites.

Hi @Huntscape-Ops! I did some digging into this, and this actually looks like a reCAPTCHA configuration issue rooted in how Framer serves your page.

The error “Invalid domain for site key” comes directly from Google reCAPTCHA, not HubSpot. It’s triggered because the domain where your form is rendering (likely a Framer preview URL like framer.app or framer.website) isn’t on the approved domain list for the reCAPTCHA site key HubSpot uses.

A couple of important things to keep in mind:
- HubSpot manages its own reCAPTCHA site key, so you can’t manually add domains to its allowlist.
- HubSpot forms must load via the official HubSpot embed script (//js.hsforms.net/forms/embed/v2.js). If the script is copied or modified in any way, security and performance updates from HubSpot won’t propagate, so make sure Framer pulls it directly from HubSpot, not a local copy.

A couple of things that might be worth trying:
1. Test on your published, custom domain rather than the Framer preview URL. This error is very common in staging/preview environments and usually resolves itself on the live site.
2. If you need it working in preview, consider temporarily disabling CAPTCHA in your HubSpot form settings; HubSpot’s built-in bot protection will still apply.
3. Double-check that your embed code is unmodified and pulling directly from HubSpot.

If the issue persists on your live custom domain, it might be worth reaching out to HubSpot Support directly with your Hub ID, form GUID, the page URL, and a screenshot of the error. That’ll give them everything they need to investigate!!
I hope this helps!
Cassie, Community Manager