Base solution for your next web application
Open Closed

ERROR for site owner: Invalid domain for site key #9303


User avatar
0
cobaltrobot created

Support,

We are receiving the following error message:

ERROR for site owner: Invalid domain for site key

Below is the contents of our appsettings.Production.json file:

{ "ConnectionStrings": { "Default": "Data Source=SODSQL2;Initial Catalog=WASP3Db;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False" }, "App": { "WebSiteRootAddress": "https://wasptest.shelby-sheriff.org/" }, "RecaptchaSettings": { "SiteKey": "6LekUKsZAAAAAMiBskJdqWQGb4LowP1D1SBV1BmJ", "SecretKey": "6LekUKsZAAAAAJ8OYCH-KU0rWKwoHyUdvQ5hVZXo" } }

We've generated SiteKey and SecretKey but we are still receiving the error message.

Please advise what else we need to do?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @cobaltrobot,

    You need to register your app for Google Recaptcha and replace the keys with the ones Google gives you. Please follow https://www.google.com/recaptcha/intro/v3.html

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    cobaltrobot created

    Hello @ismcagdas,

    We did register our app for Google reCaptcha at the address you provided. The keys we listed are the ones that Google reCaptcha provided.

    Please advise how we fix this?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Invalid domain for site key

    Probably some information on your registration is wrong if you are still getting this error message. Could you share the domain you entered for the regstration and url of your website ?

    Thanks,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    cobaltrobot created

    Hello,

    We have two domains listed in the Google reCAPTCHA admin settings:

    • shelby-sheriff.org
    • wasptest.shelby-sheriff.org

    The URL for our site is

    https://wasptest.shelby-sheriff.org/Account/Register

    Thank You,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Did you create Google Recaptca v2 or v3 ? AspNet Zero switched using v3 starting from v8.6 and above. If that's not the problem, we can try to help you via remote connection.

    Thanks,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    cobaltrobot created

    Hello,

    We created both. We tried the Google reCAPTCHA v3 first. When that did not work, we tried Google reCAPTCHA v2 and that did not work, either.

    How do we setup a remote connection? How soon can we do this remote connection? Is it possible to do it today?

    Take Care,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @cobaltrobot

    Sorry for the delay. Could you send an email to [email protected] so we can arrange the meeting.

    Thanks,

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)