【问题标题】:Google oauth is responding with redirect_uri_mismatch errorGoogle oauth 响应 redirect_uri_mismatch 错误
【发布时间】:2021-06-14 00:02:45
【问题描述】:

我的网站已经上线,例如 - https://www.example.io(使用 https)

我总是得到这个错误

由于某种原因,它使用 HTTP,尽管在凭据中我使用 https。

顺便说一句,这个 google API 已经在生产中了。

我不确定如何调试它。我尝试了 http://localhost:3000,它非常适合本地开发。

我在 node.js 中使用https://github.com/jaredhanson/passport-google-oauth

【问题讨论】:

    标签: google-oauth passport.js passport-google-oauth


    【解决方案1】:

    我在末尾添加斜线后它可以工作

    https://example.com/auth/google/callback
    

    到

     https://example.com/auth/google/callback/
    

    虽然我不确定,但希望这对其他人有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-09
      • 2015-04-03
      • 2020-11-08
      • 2019-07-14
      • 2012-07-14
      • 1970-01-01
      相关资源
      最近更新 更多