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