title: How do I avoid this X-Frame-Options SAMEORIGIN error when running the Google "Hello Analytics" API tutorial?
body: <p>I've been trying to run the <a href="https://developers.google.com/analytics/solutions/articles/hello-analytics-api">https://developers.google.com/analytics/solutions/articles/hello-analytics-api</a> tutorial to get up and running with pulling data programmatically from Google Analytics. </p>
  
  <p>I've copied the sample files exactly, but when I access them via localhost in Chrome, I get the following error in the JavaScript console, and get redirected to <code>about:blank</code> :</p>
  
  <pre><code>Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=363192057646-fbj7q1oais...%2Flocalhost&amp;response_type=token&amp;state=327475409%7C0.2024869166&amp;authuser=0' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
  </code></pre>
  
  <p>I've tried all manner of tweaks but can't get this error to go away. Hope someone can assist (or indeed just direct me to a simple, working, Javascript example for accessing the Google Analytics API.</p>