1

I am getting an error when I am trying to enter client_id at Playground. I have taken the mirror-quickstart-java-master project from google developer repository and I have followed the steps mentioned at site. I am able to see the screen as below after mvn jetty:run enter image description here

I have created the client id as below - enter image description here

Error: enter image description here

Vijay Pande
  • 276
  • 2
  • 8
  • You should obscure the client id and secret. – Prisoner Aug 01 '14 at 12:54
  • 1
    You're mixing two different projects here, and I'm not sure if that is intentional or not. Are you setting up a Quickstart project, or trying to use the Playground to do screen designs? Or both with the same client_id? – Prisoner Aug 01 '14 at 12:56

3 Answers3

0

In your Google Developer Console, add https://mirror-api-playground.appspot.com to the "Authorized Javascript Origins" field of your client settings (Edit Settings->Authorized Javascript Origins).

Koh
  • 1,570
  • 1
  • 8
  • 6
0

Origin mismatch is normally caused by the Javascript origins not being set correctly in the API project console. You need to make sure that the Javascript origins match the domain from which your requests are coming and to which you are returning the user after sign in.

See similar post Got origin_mismatch error in Google+ share api

Community
  • 1
  • 1
Shahdat
  • 5,343
  • 4
  • 37
  • 37
0

there is very simple solution of this error..

Just open your website or app where you want to access sign in and copy url and then paste same url in both fields i.e. redirect url and Javascript origin.