代码之家  ›  专栏  ›  技术社区  ›  Big_Boulard

谷歌在localhos上的登录测试:oAuth同意屏幕授权域的问题

  •  0
  • Big_Boulard  · 技术社区  · 3 年前

    我试图在本地主机上登录谷歌,但没有成功。 我已经按预期设置了授权的javascript来源(API&Services>Credentials)。。。

    authorised javascript origins

    …但登录后,我仍然会收到以下错误:

    the error message after signing in

    你可以看到谷歌提到 Authorised Javascript origins 自动添加到 OAuth consent screen authorised domains 。所以,我检查了 OAuth同意屏幕 我看不到localhost:

    OAuth consent screen authorised domains

    …我无法添加 localhost 在中 Authorized domains 列出它需要的原因 top-level domain .

    0 回复  |  直到 3 年前
        1
  •  0
  •   Big_Boulard    3 年前

    我刚切换到 https 使用 mkcert 在我的Svelte战线上,它奏效了。 请在此处查看详细信息: run sveltekit dev with https