javascript - Is it recommended to keep a Giphy API key secret? - Stack Overflow

I'm using Giphy's API and currently have a development key. I am looking to deploy my site bu

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
Add a ment  | 

2 Answers 2

Reset to default 6

Here 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742368876a4430853.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信