admin管理员组文章数量:1334826
I'm using Giphy's API and currently have a development key. I am looking to deploy my site but don't know whether it is a public facing key or a private one, and cannot find an answer online nor after asking them directly.
I'm using Giphy's API and currently have a development key. I am looking to deploy my site but don't know whether it is a public facing key or a private one, and cannot find an answer online nor after asking them directly.
Share Improve this question asked Jul 27, 2018 at 14:44 Alex YeatesAlex Yeates 1036 bronze badges 1- 1 Generally if an API key was given specifically to your user account, it should be kept private. Requests to the api with that key should e from your account, not everyone else. This at least pertains to production api keys, not test/sand keys – tandy Commented Jul 27, 2018 at 14:46
2 Answers
Reset to default 6Here is the official response to this question from GIPHY:
GIPHY APIs are designed to be used on the client side (and hence the API key too). You should go ahead and use it that way. Once development is plete - please apply for Production access for the key through the Developer Dashboard, this removes Rate limits associated with a beta key, so you don't have to worry about high traffic. Lastly, and most importantly - GIPHY has monitors setup for API key abuse and we'll reach out to you if anything happens. We definitely don't want you to worry about it.
From here
Seems shouldn't be worrying about it.
While I generally tend to agree with Jay's answer, after reviewing their introduction and the specific javascript sample it seems to me that this key should be used from the browser and as a result it is practically a public key. I would assume that later on in the process, to avoid abuse with production API key, they might only serve requests ing from a domain you registered along with that key. Development key is anyhow for limited testing purposes as far as I understand so that's less of an issue if there's no registered domain for that.
本文标签: javascriptIs it recommended to keep a Giphy API key secretStack Overflow
版权声明:本文标题:javascript - Is it recommended to keep a Giphy API key secret? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742368876a2461828.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论