vue-recaptcha-v3
vue-recaptcha-v3 copied to clipboard
Adding container creates reCAPTCHA ERROR: Invalid domain for site key
Adding container creates reCAPTCHA ERROR: Invalid domain for site key
Here is an excerpt of my code
.use(VueReCaptcha, {
siteKey: '<my-real-key>',
loaderOptions: {
explicitRenderParameters: {
container: 'reCaptcha',
badge: 'inline',
},
},
The badge is rendered inside the <div class="reCaptcha"></div>
with an error message: reCAPTCHA ERROR: Invalid domain for site key and then the code fails. If i remove container: 'reCaptcha',
from the code it works (set aside the location for the badge).
Anyone have a solution for this?