如何在Javascript中保护Instagram访问密钥?

时间:2016-03-17 01:33:00

标签: javascript api instagram instafeedjs

我使用Instafeed.js在网站上显示Feed,但我已经知道不允许在客户端使用访问令牌。

有没有办法可以保护这些数据或以源代码中不可见的方式获取访问令牌?让其他人看到我的访问密钥有什么危险?

override func drawLayer(layer: CALayer, inContext context: CGContext) {
    super.drawLayer(layer, inContext: context)

    let colorForCustomDrawing = layer.backgroundColor
    // your custom drawing code
}


override func drawRect(rect: CGRect) {
    // Although we use drawLayer(_:inContext:) we still need to implement this method.
    // UIKit checks for its presence when it decides whether a call to setNeedsDisplay() is forwarded to its layer.
}

0 个答案:

没有答案