Invalid parameter value for redirect_uri: Non-public domains not allowed: http://localhost:3000/auth/google/callback

a 夏天 提交于 2020-07-23 06:35:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!