Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drive API Quickstart - "Not a valid origin..." but there's no way to register one #83

Open
RickMohr opened this issue Nov 1, 2021 · 0 comments

Comments

@RickMohr
Copy link

RickMohr commented Nov 1, 2021

Following the Drive API JavaScript Quickstart prerequisites I created "Authorization credentials for a desktop application". Loading the sample, the call to gapi.client.init gives this error:

{
  "error": "idpiframe_initialization_failed",
  "details": "Not a valid origin for the client: http://localhost:8000 has not been registered for client ID <snip>. Please go to https://console.developers.google.com/ and register this origin for your project's client ID."
}

But when I go to https://console.cloud.google.com/apis/credentials, the edit screen for my project's client ID contains only a "Name" field, no way to register an origin.

(I tried creating a "web application" instead but local URLs can't be registered.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant