"Error: origin_mismatch" when trying to login with Google API

I am writing a webpage with a java script that has a user login button (google authorization) and it works great with this tutorial: https://developers.google.com/google-apps/calendar/quickstart/js

When I tried to load the html page to some host (google drive host) and try to login, I get this odd message:

400. That’s an error.

Error: origin_mismatch

Application: MED

You can email the developer of this application at: *****@gmail.com

Request Details
response_type=token
scope=https://www.googleapis.com/auth/calendar
redirect_uri=postmessage
proxy=oauth2relay541999932
state=259894099|0.2086575188
origin=https://ea071c7be2c73136e3e3e15fda8074457cacd31b-www.googledrive.com
include_granted_scopes=true
client_id=37316297355-ur11ism5dhu378pbfac7k36e3jhbn17u.apps.googleusercontent.com
authuser=0

      

What should I do to fix this? Many thanks!

+3


source to share





All Articles