vue-recaptcha-v3 icon indicating copy to clipboard operation
vue-recaptcha-v3 copied to clipboard

Adding container creates reCAPTCHA ERROR: Invalid domain for site key

Open sjsd opened this issue 3 years ago • 0 comments

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?

sjsd avatar Feb 02 '22 14:02 sjsd