title: Google API authentication: Not valid origin for the client
body: <p>When making an auth request to the Google API (gapi), it's returning false on the checkOrigin.</p>
  
  <p>I have removed any client id's or anything that would link directly to my account and replaced it with a regex indicating what the data is for reference.</p>
  
  <p>Url: <code>https://accounts.google.com/o/oauth2/iframerpc?action=checkOrigin&amp;origin=https%3A%2F%2Flocal.tools&amp;client_id=(\d{21})</code></p>
  
  <p>My origin url is a local url, which is <code>https://local.tools</code></p>
  
  <p>Result: <code>{valid: false}</code></p>
  
  <p>I'm using the example found here without deviation (except for replacing clientid with my 21 digit clientid): <a href="https://ga-dev-tools.appspot.com/embed-api/third-party-visualizations/" rel="noreferrer">https://ga-dev-tools.appspot.com/embed-api/third-party-visualizations/</a></p>
  
  <p>The items I'm trying to display show up nicely on the demo site, but aren't getting past the Not valid origin for the client error on my local.tools site.</p>