Skip to main content
Question

how to use box.com api in SPA?

  • May 22, 2025
  • 2 replies
  • 27 views

Forum|alt.badge.img

I'm trying to build a single page app with Vue.js, and I'd like to integrate some box.com features like upload file, view file, etc.

However, All API calls require client id and client secret. I can't put it in the javascript code because that way others can ready from my source code.

how can I achieve it? seems I will need to build a server side app to actor as proxy app to handle all requests to box.com api? 

2 replies

Forum|alt.badge.img

This is my concern as well. Usually, products like Google Cloud Storage provide a signed url but I have no clue how I can perform similar task in Box API.


Forum|alt.badge.img

Have you made any progress with this?

My team is just beginning a sprint to do this on a small scale using VueJS and Axios.