Search code examples
oauth-2.0google-mirror-api

Why do I get "Invalid web origin" setting up google client id


I'm trying to set up a mirror API service for Google Glass. I turned on Mirror API in the google dashboard per the instructions in the glass developer website for Mirror API.

But when I go to create a Client ID for Oauth2, I get "Invalid web origin".

I'm putting in www.myserver.com/foldercreated, which exists in my server.


Solution

  • Use your url's domain name as Authorized JavaScript origins such as:

    http://www.myserver.com

    And your callback urls as Authorized redirect URI such as:

    http://www.myserver.com/foldercreated

    Don't forget to set http:// (or https://) prefix.