[英]Securing Javascript API key
I'm using the Dropbox API in a current project & I intend to push & host on github. 我在当前项目中使用Dropbox API,我打算在github上推送和托管。 Do I need to secure the access token for the API & if so, how do I go about this?
我是否需要保护API的访问令牌?如果需要,该如何处理?
var Dropbox = require('dropbox');
var dbx = new Dropbox({ accessToken: '####' });
Dropbox requires you set a URL for use with the app you're creating but I'm not sure if that's enough? Dropbox要求您设置要与正在创建的应用程序一起使用的URL,但是我不确定是否足够?
Thanks in advance, 提前致谢,
Rory 罗里
切勿将任何api键推入github。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.