Skip to content

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

@RickMohr

Description

@RickMohr

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions