How to secure the JavaScript API Access Token?

后端 未结 5 2042
轮回少年
轮回少年 2020-12-02 10:24

There are numerous online resources which provide JavaScript APIs to access their services. To be more clear, I will base my question on the example of MapBox, but this appl

5条回答
  •  情书的邮戳
    2020-12-02 11:09

    5 years later, this is not necessarily for the original poster but for anyone still interested, Mapbox now allows you to easily restrict tokens by domain(s):

    https://account.mapbox.com/access-tokens (assuming you are signed in)

提交回复
热议问题