title: idpiframe_initialization_failed in Google Sign In from Localhost
body: <p>I'm trying to create a Google Sign In button by following <a href="https://developers.google.com/identity/sign-in/web/" rel="noreferrer">this link</a>. So far the account choose dialogue box is coming but after that I don't see any result in the console. Instead I'm getting this error at page load,</p>
  
  <pre><code>"idpiframe_initialization_failed", details: "Not a valid origin for the client: http://localhos…itelist this origin for your project's client ID."
  details: "Not a valid origin for the client: http://localhost has not been whitelisted for client ID 386404527657-q4ss06np5g27dllq5ds7aif42udkh7e5.apps.googleusercontent.com. Please go to https://console.developers.google.com/ and whitelist this origin for your project's client ID."
  </code></pre>
  
  <ul>
  <li>I've set Javascript Origins <em><a href="http://localhost" rel="noreferrer">http://localhost</a></em> &amp; <em><a href="http://192.168.0.100:3000" rel="noreferrer">http://192.168.0.100:3000</a></em></li>
  <li>I've set Redirect URI <em><a href="http://localhost:8080/Callback" rel="noreferrer">http://localhost:8080/Callback</a></em> &amp; <em><a href="http://localhost:8080" rel="noreferrer">http://localhost:8080</a></em></li>
  </ul>
  
  <p>Here are the codes,</p>
  
  <pre><code>&lt;html lang="en"&gt;
    &lt;head&gt;
      &lt;meta name="google-signin-scope" content="profile email"&gt;
      &lt;meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com"&gt;
      &lt;script src="https://apis.google.com/js/platform.js" async defer&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div class="g-signin2" data-onsuccess="onSignIn" data-theme="dark"&lt;/div&gt;
      &lt;script&gt;
        function onSignIn(googleUser) {
          // Useful data for your client-side scripts:
          var profile = googleUser.getBasicProfile();
          console.log("ID: " + profile.getId()); // Don't send this directly to your server!
          console.log('Full Name: ' + profile.getName());
          console.log('Given Name: ' + profile.getGivenName());
          console.log('Family Name: ' + profile.getFamilyName());
          console.log("Image URL: " + profile.getImageUrl());
          console.log("Email: " + profile.getEmail());
  
          // The ID token you need to pass to your backend:
          var id_token = googleUser.getAuthResponse().id_token;
          console.log("ID Token: " + id_token);
        };
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I get the results in my console?</p>