box / box-content-preview

JavaScript library for rendering files stored on Box
https://developer.box.com/docs/box-content-preview
Other
106 stars 113 forks source link

letting organizations that block dl.boxcloud.com use the vox v #1443

Open itamarzil123 opened 2 years ago

itamarzil123 commented 2 years ago

Environment: JS

Steps to reproduce the problem:

  1. use a reverse proxy and instead of using api.box.com use a custom domain.
  2. change the relevant constants in constants.js and build the box preview library
  3. serve the build from cdn

What is the expected behavior? (Screenshots can be helpful here) the expected behavior is for users from different organization to be able to view files via the box viewer and using box as storage provider. (even organizations that block the box cloud for some networking security reasons - allow them to view box content via a reverse proxy)

What went wrong? (Screenshots, console logs, or HAR files can be helpful here) a request to dl.boxcloud.com happens regardless of changing all constants like API_HOST. Is it possible that instead of a request to dl.boxcloud.com there will be a request to a reverse proxy ?

is there a documentation page that is meant as a tutorial for organizations that want to use Box Preview but use their custom domain and serve the way they want to serve it and use a reverse proxy, etc ...

azndoodle commented 1 year ago

I'm also stuck with this as I need to use to Viewer through a reverse proxy.