我如何 link 将 uri 重定向到我的本地主机?

How do I link the redirect uri to my localhost?

我正在尝试使用 localhost/users/auth/google_oauth2/callback 作为重定向 uri,但我一直收到 An error occured while connecting to the server: DNS lookup failed for URL: http://localhost/users/auth/google_oauth2/callback

这里的技巧是在 API 网络界面中将 http://localhost/users/auth/google_oauth2/callback 设置为重定向 URL 之一。客户端是被重定向的,所以它与网络无关。初学者错误,所以希望如果你正在阅读这篇文章,我会让你头疼:)