I'm trying to get rid of the the "Invalid domain for site key" message in reCAPTCHA 2 from a form. I've tried the following:
Added the site key inside <umbracocontour> as a <setting key="RecaptchaPublicKey" value="myKey" in App_Plugins/UmbracoForms/UmbracoForms.config.
Added the site key inside <appSettings> as a add key="RecaptchaSiteKey" value="myKey" in Web.config.
I've cleared the site cache in Chrome (the browser I'm using).
I know the key is correct because if I add the recaptcha field to the page like this it works fine: <div class="g-recaptcha" data-sitekey="myKey"></div> but it is not a viable solution as it lands outside the form and is not checked before submitting.
The recaptcha field I'm using was added using the form builder in the backoffice.
You need to put your reCaptcha 2 keys in the UmbracoForms.config file in the app plugins folder. Full path is ~/App_Plugins/UmbracoForms/UmbracoForms.config
Recaptcha - Invalid domain for site key
I'm trying to get rid of the the "Invalid domain for site key" message in reCAPTCHA 2 from a form. I've tried the following:
<umbracocontour>
as a<setting key="RecaptchaPublicKey" value="myKey"
in App_Plugins/UmbracoForms/UmbracoForms.config.<appSettings>
as aadd key="RecaptchaSiteKey" value="myKey"
in Web.config.I know the key is correct because if I add the recaptcha field to the page like this it works fine:
<div class="g-recaptcha" data-sitekey="myKey"></div>
but it is not a viable solution as it lands outside the form and is not checked before submitting.The recaptcha field I'm using was added using the form builder in the backoffice.
Any ideas on how to solve this?
Cheers
You need to put your reCaptcha 2 keys in the UmbracoForms.config file in the app plugins folder. Full path is ~/App_Plugins/UmbracoForms/UmbracoForms.config
This solved my problem.
This has NOT solved my problem. I'm using the trial version of forms in V8. I have my keys in the UmbracoForms.config. Any ideas?
is working on a reply...