title: Google Drive file upload using JavaScript API throwing Error of X-Frame-Options
body: <p>I'm using Google Drive API for uploading an file to google drive using javascript sdk, I'm following the tutorial from the <a href="https://developers.google.com/drive/web/quickstart/quickstart-js" rel="nofollow noreferrer">official page</a> but while running the Application I'm getting an Error in console which says</p>
  
  <pre><code> Refused to display 'https://accounts.google.com/o/oauth2/auth?client_id=27050131367-74qcgvobdsc…host%3A3000&amp;response_type=token&amp;state=1889213326%7C0.2632152967&amp;authuser=0' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
  </code></pre>
  
  <p>I tried to search on Internet and came across <a href="https://stackoverflow.com/questions/23449486/refused-to-display-in-an-frame-because-it-set-x-frame-options-to-sameorigin">this post</a> but the solution did not worked out for me I'm using the same code which is there on the google drive documentation page.</p>
  
  <p>I've tried running the Application in my local wamp, local node js and also deployed it on two live server one is the php server <a href="http://www.webashlar.com/Demos/imguruplod/googleD.html" rel="nofollow noreferrer">here</a> and one on google App engine <a href="http://demoapp-test.appspot.com/index.html" rel="nofollow noreferrer">here</a> but still in chrome I'm getting the same Error.</p>
  
  <p>Could someone please help me in this ?..   </p>