我可以公开分享我的Google+ API密钥吗? [英] Can I publicly share my Google+ API keys?

查看:140
本文介绍了我可以公开分享我的Google+ API密钥吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Google plus开发一个应用程序。因此我需要一个API密钥。我已经在API控制台中生成了密钥。现在使用该密钥,我将使用JSON中的JavaScript访问Google+中的一些数据。但在这种方法中,我的API密钥将公开显示。分享它可以吗?



我从这里获得的一些信息
https://developers.google.com/console/help/#UsingKeys

解决方案

为客户端应用程序公开API密钥是无法避免的。为确保没有其他人可以(ab)使用您的API密钥,您可以在API控制台中限制您的API密钥,以便只能通过定义允许的查阅者从您自己的域中使用。


I am developing an application with Google plus. Hence I need an API key. I have generated the key in API console. Now using that key I am going to access some data from Google+ using JavaScript in JSON. But in this method my API key will be publicly visible. Is it OK to share it?

Some information I got from here https://developers.google.com/console/help/#UsingKeys

解决方案

Having API Keys public for client-side applications can't be avoided. To make sure no other people can (ab)use your API Key you can limit your API Key in the API console, so that it can only be used from your own domain, by defining "allowed referers"

这篇关于我可以公开分享我的Google+ API密钥吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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