Recaptcha cloudworkers

We have a reCAPTCHA on a page associated with a cloudworker. The page works fine in production; however, when in preview mode in the worker dev editor the error message “ERROR for site owner: Invalid domain for site key” is displayed.

Is this expected?

Is there a work-around?

The reCAPTCHA might be considering as url Cloudflareworkers.com and not your url via Window.URL

Thanks. I will try and add Cloudflareworkers.com as an accepted domain next week and post the findings.