Google Auth API Javascript idpiframe initialization error on Chrome

前端 未结 4 1894
庸人自扰
庸人自扰 2021-02-18 13:53

I use GSuite and I\'m coding a very simple web app to use Google Auth API, and I get an exception \"idpiframe_initialization_failed\".

Now I have the exact HTML as shown

4条回答
  •  时光取名叫无心
    2021-02-18 14:23

    I encountered the same issue. After investing some time, found the reason. This error is because in chrome settings, you have the Block third-party cookies and site data option enabled.

    It can be resolved by disabling this option: "To find the setting, open Chrome settings, type "Content settings" in the search box, click the Content Settings button, and view the fourth item under Cookies." Uncheck the box "Block third-party cookies and site data".

    Hopefully this helps you in resolving your issue.

提交回复
热议问题