为 Google Cloud Endpoint API 设置 TLS 代理 [英] Set up TLS proxy for Google Cloud Endpoint APIs

查看:24
本文介绍了为 Google Cloud Endpoint API 设置 TLS 代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在 API 资源管理器 (localhost) 中查看我的 Google App Engine 端点 API 没有问题,现在得到了这个:

I have been viewing my Google App Engine endpoint APIs in the API explorer (localhost) without issues, now am getting this:

全文如下:

您正在探索通过 HTTP 而不是 HTTPS 描述或提供的 API.这是不安全的,可能会被您的浏览器阻止.要解决此问题,请为您的 API 设置 TLS 代理.或者,您可以告诉浏览器允许通过 HTTP 访问此站点的活动内容(在 Chrome 上,点击 URL 栏中的盾牌),但这不会提高安全性或消除此消息.

You are exploring an API that is described or served via HTTP instead of HTTPS. This is insecure and may be blocked by your browser. To fix this, set up a TLS proxy for your API. Alternatively, you can tell your browser to allow active content via HTTP at this site (on Chrome, click the shield in the URL bar), but this will not improve security or dismiss this message.

这是我在端点中的 API 方法之一:

This is one of the API methods I have in my endpoint:

@ApiMethod(
        name = "insert",
        path = "movie",
        httpMethod = ApiMethod.HttpMethod.POST)
public Movie insert(Movie movie) throws UnauthorizedException {
    ...
}

因为我突然不知道是什么原因造成的,所以我不知道还有什么要显示的.我尝试更新我的浏览器(Firefox、Opera、Chrome),但没有成功.

Since I do not know what's causing this all of a sudden, I do not know what else to show.I've tried updating my browsers (Firefox, Opera, Chrome) with no luck.

推荐答案

今天遇到了同样的问题

现在,如果您使用的是 chrome,您可以点击 URL 栏右侧的盾牌图标,然后点击显示无论如何加载脚本的内容,您的 API 应该会出现.

For now if you are using chrome you can click on the shield icon on the right of the URL bar and click on something saying load scripts anyway and your API should appear.

图片:http://i.gyazo.com/f16a557c4b53c147f31067029d15c093.png

Image: http://i.gyazo.com/f16a557c4b53c147f31067029d15c093.png

这篇关于为 Google Cloud Endpoint API 设置 TLS 代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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