Google API explorer redirects to https://apis-explorer.appspot.com/apis-explorer/#p/

元气小坏坏 提交于 2019-12-23 13:15:15

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/33905961/google-api-explorer-redirects-to-https-apis-explorer-appspot-com-apis-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!