Skip to main content
Box Employee
May 22, 2025 9:15 AM UTC
Question

how to use box.com api in SPA?

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

    Box Employee
    May 22, 2025 9:15 AM UTC

    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.

    Translate
    Box Employee
    May 22, 2025 9:15 AM UTC

    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.

    Translate