Got origin_mismatch error in Google+ share api

后端 未结 16 976
醉梦人生
醉梦人生 2020-12-03 07:04

I want to share some dynamic content on google+. For this I checked it https://developers.google.com/+/web/share/interactive#rendering_the_button_with_javascript

<         


        
16条回答
  •  借酒劲吻你
    2020-12-03 07:27

    1: Open the Credentials page for your project.

    2:Double-click on your OAuth 2.0 Web client in the client ID list.

    3: Make sure that in the web client ID form, change the Authorized JavaScript origins field to http://localhost:8080 when you are running the server locally. When running remotely add the corresponding appspot server url.

提交回复
热议问题