title: Google API: Not a valid origin for the client: url has not been whitelisted for client ID "ID"
body: <p>I need help. I don't found an answer to my question. I tried googling and I tried asking on other sides but I never found an answer.</p>
  <p>I'm working with the google API (Youtube data API) and I use the example code from the google side the code it works I'm pretty sure about that. I got an error when i try to start the Script:</p>
  <blockquote>
  <p>details: &quot;Not a valid origin for the client: &quot;MyURL&quot; has not been whitelisted for client ID &quot;MyID&quot;. Please go to <a href="https://console.developers.google.com/" rel="noreferrer">https://console.developers.google.com/</a> and whitelist this origin for your project's client ID.&quot;</p>
  <p>error: &quot;idpiframe_initialization_failed&quot;</p>
  </blockquote>
  <p>The problem i whitelisted my Website and it's accepted. i don't know what is wrong. What should i do to &quot;whitelist&quot; my Domain (It's whitelisted)</p>
  <p>And another question. I did not search for an answer on this question before.</p>
  <p>I think it's possible that I can use the code on Localhost, I think I must whitelist my localhost address or something like this. But whitelisting does not work.</p>
  <ul>
  <li>DreamGamer</li>
  </ul>