问题
I am following Traversy Media recent tutorial on nodejs from scratch and doing every thing as he doing but I don't know why I can't use this redirecting url http://localhost:3000/auth/google/callback even though he(brad traversy the tutorial maker) can use.
回答1:
instead of using
http://localhost:3000/auth/google/callback
I used
http://127.0.0.1:3000/auth/google/callback
and also used 127.0.0.1 while making any request to server in my chrome browser. localhost is not allowed to be redirect uri. I found the allowed uris list here(Scroll down the half page to find allowed list) Link of allowed redirect uris
来源:https://stackoverflow.com/questions/62720465/invalid-parameter-value-for-redirect-uri-non-public-domains-not-allowed-http