Skip to main content
Question

hosting the Content Preview SDK

  • May 22, 2025
  • 2 replies
  • 15 views

Forum|alt.badge.img

The documentation at https://developer.box.com/docs/box-content-preview says

 

You can self-host the Preview UI Element or reference the versions hosted on the Box CDN.

 

but when I tried to use a copy I had saved locally, it failed on `findScriptLocation`. Apparently it depends on its name being hard-coded? And in the comment where it calls findScriptLocation, it refers to using that as a base for "all preview assets."

 

Does that mean there are other assets I'd have to host as well, in addition to the two preview.js and css files?

 

Using our hosts would avoid adding exceptions to our security policy.

2 replies

Forum|alt.badge.img

Hey ,

 

Thanks for pointing that out! Could I please have you raise a corresponding issue on the Github issues page?

https://github.com/box/box-content-preview/issues

 

The team in charge of that UI element will be able to help you out directly there! If you link back here after, that would help too, for anyone that finds this forum post!

 

Thanks,

Jason


Forum|alt.badge.img