title: Google Sign-in is not working
body: <p>I tried to use Google Sign-in for my website, however, it keeps giving me 400 error.</p>
  
  <p>I referenced this article: <a href="https://developers.google.com/identity/sign-in/web/sign-in" rel="noreferrer">https://developers.google.com/identity/sign-in/web/sign-in</a>, and my code is really simple:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Test Google Login&lt;/title&gt;
    &lt;script src="https://apis.google.com/js/platform.js" async defer&gt;&lt;/script&gt;
    &lt;meta name="google-signin-client_id" content="&lt;CHANGE IT&gt;"&gt;
    &lt;script&gt;
    function onSignIn(googleUser) {
      var profile = googleUser.getBasicProfile();
      console.log('ID: ' + profile.getId());
      console.log('Name: ' + profile.getName());
      console.log('Image URL: ' + profile.getImageUrl());
      console.log('Email: ' + profile.getEmail());
    }
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="g-signin2" data-onsuccess="onSignIn"&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click Sign-in button, it popups a window, and after logged in, it gave me 400 error as below:</p>
  
  <pre><code>400. That’s an error.
  
  The requested URL was not found on this server. That’s all we know.
  </code></pre>
  
  <p>I guess it's redirect issue, but I don't know how to configure it. So I checked url it returned to me:</p>
  
  <pre><code>https://accounts.google.com/o/oauth2/auth?fetch_basic_profile=true&amp;scope=email+profile+openid&amp;response_type=permission&amp;e=3100087&amp;redirect_uri=storagerelay://http/127.0.0.1:8000?id%3Dauth867179&amp;ss_domain=http://127.0.0.1:8000&amp;client_id=378468243311-9dt7m9ufa9mee305j1b12815put5betb.apps.googleusercontent.com&amp;openid.realm&amp;hl=en&amp;from_login=1&amp;as=1b5f0a407ea58e11&amp;pli=1&amp;authuser=0
  </code></pre>
  
  <p>Why is redirect_uri "storagerelay://http/127.0.0.1:8000?id%3Dauth867179"?</p>