为授权重定向 URI 添加 http://192.168.64.2:8000 域

Add http://192.168.64.2:8000 domain for Authorized redirect URIs

我正在尝试添加 google 授权重定向 URI 我添加了两个域用于本地测试 http://127.0.0.1:8000/app/oauth/complete/google-oauth2/http://localhost:8000/app/oauth/complete/google-oauth2/

以上两个域名都可以正常工作

但是当我想添加 http://192.168.64.2:8000/app/oauth/complete/google-oauth2

它显示波纹管错误

Invalid Redirect: must end with a public top-level domain (such as .com or .org).
Invalid Redirect: domain must be added to the authorized domains list before submitting.  

http://192.168.64.2:8000/app/oauth/complete/google-oauth2 添加为授权重定向 URI 的域实际上有什么问题?

您不能添加 127.0.0.1 以外的 IP 地址。如果你想添加这样的位置,你需要设置一个服务器并让它可以从 public www 域访问。