Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding container creates reCAPTCHA ERROR: Invalid domain for site key #599

Open
sjsd opened this issue Feb 2, 2022 · 0 comments
Open

Adding container creates reCAPTCHA ERROR: Invalid domain for site key #599

sjsd opened this issue Feb 2, 2022 · 0 comments

Comments

@sjsd
Copy link

sjsd commented Feb 2, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant