title: Error 400: Redirect_URI_Mismatch from Embed Code Object in Google Sites to Google Sheets API
body: <p>I am trying to connect to Google Sheets API from Google Sites using the Embed Code object. It returns the following error when I try to log in:</p>
  <p>Error 400: redirect_uri_mismatch
  The JavaScript origin in the request, <a href="https://xxxxxxxx-atari-embeds.googleusercontent.com" rel="nofollow noreferrer">https://xxxxxxxx-atari-embeds.googleusercontent.com</a>, does not match the ones authorized for the OAuth client.</p>
  <p>OAuth 2.0 Client IDs on Google Cloud Platform do not accept <a href="https://googleusercontent.com" rel="nofollow noreferrer">https://googleusercontent.com</a> as the Authorized JavaScript origins, and I'm not sure if there's a way to allow the embed object in Google Sites to access the Google Sheets API.</p>
  <p>Please advise.</p>