Getting “Error: redirect_uri_mismatch” with google_oauth2

后端 未结 5 2010
孤街浪徒
孤街浪徒 2021-02-04 05:04

The URL\'s seem right (Last updated them yesterday):

\"enter

The files too:

<
5条回答
  •  -上瘾入骨i
    2021-02-04 05:14

    It looks like the request is hitting http://localhost:3000/auth/google_oauth2/callback, but your specified redirect URI matching the similar pattern is for https. Adding http://localhost:3000/auth/google_oauth2/callback to your list of redirects may potentially solve that issue.

    EDIT: Another potential fix is including a trailing / in the corresponding redirect URIs, which appeared to work in this case.

提交回复
热议问题