Google API浏览器重定向到https://apis-explorer.appspot.com/apis-explorer/#p/ [英] Google API explorer redirects to https://apis-explorer.appspot.com/apis-explorer/#p/

查看:110
本文介绍了Google API浏览器重定向到https://apis-explorer.appspot.com/apis-explorer/#p/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:
我已经使用了Google,并且阅读了这些问题:

无法访问本地主机上的API资源管理器

如何在Chrome中强制加载动态的,不安全的内容?

和其他许多人,但他们没有解决我的问题。



问题:

m正在运行MacOS,并在我的开发中运行在Paralells中运行的Debian VM。
我使用以下命令启动开发服务器:
dev_appserver.py --clear_datastore --host 0.0.0.0 --admin_host 0.0.0.0 app



我可以使用我的Debian机器IP从MacOS访问应用程序,端点,管理模块等。 http://10.211.55.6:8080/_ah/api/my-服务/ v1 / api 等等......一切正常,除了Google API Explorer之外,还可以正常工作。



当我尝试访问 http://10.211.55.6:8080/_ah/api/explorer 我被重定向到 http:// apis -explorer.appspot.com/apis-explorer/?base=http:///10.211.55.6:8080/_ah/api#p/ ,如上所述,我得到了ssl错误(如预期的那样),但是我又重定向了几次,最终在 https://apis-explorer.appspot.com/apis-explorer/#p/



注意:我无法点击标题中的锁定图标因为重新吧指示

我尝试了几乎所有我能想到的并且谷歌广泛无用的东西。希望有人能帮助我,我怀疑它与在虚拟机内部运行的开发者服务器有关,但我不确定。

div>

当您在chrome中以本地方式访问api_explorer时,地址栏的最右侧会显示一个盾牌图标。点击,然后选择加载不安全的脚本,它会加载您定义的所有服务端点。在本地加载api_explorer a>


Note: I have googled, and read these issues:

Cannot access API explorer on localhost

How to force loading dynamic, insecure content in Chrome?

and many others but they do not solve my problem.

The problem:

I'm running MacOS and doing my development int Debian VM running in Paralells. I start up the dev server using the following command: dev_appserver.py --clear_datastore --host 0.0.0.0 --admin_host 0.0.0.0 app

and I can access the app, endpoints, admin module etc from MacOS using my Debian machine IP eg. http://10.211.55.6:8080/_ah/api/my-service/v1/api etc... everything works fine and as expected except for Google API Explorer.

When I try to access http://10.211.55.6:8080/_ah/api/explorer I am redirected to http://apis-explorer.appspot.com/apis-explorer/?base=http:///10.211.55.6:8080/_ah/api#p/ as expected and I get the ssl error as described in the issue above (again as expected) but then I get redirected a couple of more times and end up at https://apis-explorer.appspot.com/apis-explorer/#p/

Note: I cannot click on the lock icon in the title bar because of the redirects

I've tried almost everything I can think of and have google extensively to no avail. Hope someone can help me, I suspect it has something to do with the dev server being run inside of a VM, but I am not sure.

解决方案

there is a shield icon in the rightmost part of the address bar that appears when you access the api_explorer locally in chrome. Click and then select load unsafe script and it will load all the service endpoints you define.loading api_explorer locally

这篇关于Google API浏览器重定向到https://apis-explorer.appspot.com/apis-explorer/#p/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆