Google+ API. Sharing interactive posts error. Clai

2019-05-26 08:40发布

问题:

I do everything as stated on this page developers.google.com however, the window appears for a split second, and then an error in the console "Claimed origin not in whitelist: (mySiteLink)"

回答1:

Your web origin in the Google API Console should only include http:// or https:// and then the host name. Make sure you don't have / in the end. The web origin is under the OAuth 2.0 Client ID section in the Console.



回答2:

I remove the '/' at the end of "Javascript Origins" url and solve. Example: Original that error URL: http://www.example.com/

Changed to URL: http://www.example.com

Problem solved.



标签: google-plus