Google+ API. Sharing interactive posts error. Claimed origin not in whitelist

白昼怎懂夜的黑 提交于 2019-12-22 18:46:34

问题


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.



来源:https://stackoverflow.com/questions/19975326/google-api-sharing-interactive-posts-error-claimed-origin-not-in-whitelist

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!