redirect_uri的参数值无效:不允许使用非公共域:http://localhost:3000/auth/google/callback [英] Invalid parameter value for redirect_uri: Non-public domains not allowed: http://localhost:3000/auth/google/callback
问题描述
我从头开始关注Traversy Media最近关于nodejs的教程,并按他的方式做每件事,但是我不知道为什么我不能使用此重定向URL http://localhost:3000/auth/google /callback ,即使他(教程制作者的遍历遍历)也可以使用.
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.
推荐答案
代替使用
http://localhost:3000/auth/google/callback
我用过
http://127.0.0.1:3000/auth/google/callback
,并且在我的Chrome浏览器中向服务器发出任何请求时也使用了127.0.0.1.本地主机不允许重定向uri.我在这里找到了允许的uris列表(向下滚动半页以找到允许的列表)允许的重定向uri的链接
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
这篇关于redirect_uri的参数值无效:不允许使用非公共域:http://localhost:3000/auth/google/callback的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!