问题描述
我创建使用谷歌日历API的应用程序。在我的本地安装Apache,使用本地主机一切正常:8888 / pathtoapp作为重定向URI
I'm creating an app using Google calendar API. Everything works fine on my local apache install, using localhost:8888/pathtoapp as the redirect URI.
我要应用到另一台机器迁移我的本地网络上。我试图改变的URI新的Apache安装的本地IP。我得到以下错误...
I want to migrate the app to another machine on my local network. I tried changing the URI to the local ip of the new apache install. I get the following error...
Error: invalid_request
Invalid parameter value for redirect_uri: Raw IP addresses not allowed: http://192.168.0.17/pathtoapp/
我如何能使用内部IP作为重定向URI或其他方式周围没有任何想法?
Any ideas on how I can use an internal IP as a redirect URI or other ways around it?
感谢。
推荐答案
看起来像API是不是让您使用的IP地址。尝试使用网络名称而不是IP地址。
如果您没有访问名字,你的本地计算机上创建一个别名为特定的IP。
Looks like the API is not allowing you to use IP addresses. Try to use network name not ip address.If you don't have access to the name, create an alias on your local machine for that specific IP.
这篇关于谷歌API - 重定向URI与内部IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!