当前位置: 动力学知识库 > 问答 > 编程问答 >

400 Error : origin_mismatch Google glass playground

问题描述:

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

I have created the client id as below -

Error:

网友答案:

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

网友答案:

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

网友答案:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: