title: google api "Permission denied to generate login hint for target domain"
body: <p>In <a href="https://console.developers.google.com/apis/credentials/oauthclient" rel="nofollow noreferrer">https://console.developers.google.com/apis/credentials/oauthclient</a> I created a "Client ID for Web application", No restrictions: empty "Authorized JavaScript origins" and empty "Authorized redirect URIs". I receiv a client Id and put it on  a page.</p>
  
  <p>Below is the most basic page sample. I receive the message:</p>
  
  <p><em>400. That’s an error.</em></p>
  
  <p><em>Error: invalid_request</em></p>
  
  <p><em>Permission denied to generate login hint for target domain.</em></p>
  
  <p>??? what's wrong? </p>
  
  <pre><code>&lt;head&gt;
  &lt;meta name="google-signin-client_id" content="****26190863-tm7mr9racl8bgooifq2kjssb1n7teoob.apps.googleusercontent.com"&gt;
  &lt;/head&gt;
  &lt;script src="https://apis.google.com/js/platform.js" async defer&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  function onSignIn(googleUser) {
    var profile = googleUser.getBasicProfile();
    console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
    console.log('Name: ' + profile.getName());
    console.log('Image URL: ' + profile.getImageUrl());
    console.log('Email: ' + profile.getEmail());
  }
  &lt;/script&gt;
  &lt;body&gt;
      &lt;div class="g-signin2" data-onsuccess="onSignIn"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>