Google Auth API Javascript idpiframe initialization error on Chrome

前端 未结 4 1853
庸人自扰
庸人自扰 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:38

    I had the same problem and I searched for 3 days: Resolve " popup_closed_by_user" Go to your console.google go to your API MANAGE : Credentials:modify your credentials:

    Authorized Javascript origin (http://localhost:port); authorized redirect URI(http://localhost:port/auth/google/callback);

    Example:|| Authorized Javascript origin (http://localhost:4200); authorized redirect URI (http://localhost:4200/auth/google/callback)

提交回复
热议问题