title: reCAPTCHA ERROR: Invalid domain for site key
body: <p>I have implemented my reCAPTCHA in line with as is shown in the <a href="https://www.google.com/recaptcha/admin" rel="noreferrer">example</a>.</p>
  
  <p>I have this script in the <code>head</code> tag:</p>
  
  <pre><code>&lt;script src="https://www.google.com/recaptcha/api.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In my <code>form</code> in HTML I have:</p>
  
  <pre><code>&lt;div class="g-recaptcha" data-sitekey="my public sitekey here"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>But when I load the <code>form</code> I get this error:</p>
  
  <blockquote>
    <p>ERROR: Invalid domain for site key</p>
  </blockquote>
  
  <p>I have confirmed that this is the correct site key for my domain. </p>
  
  <p>The code is currently in a subdomain so I thought maybe that was the problem so I also added the subdomain to the Google reCAPTCHA admin but still get the error.</p>
  
  <p>The exact same code works 100% in a different domain (with a key specific to that domain).<br>
  What could be the problem?</p>