Hi,
I'm using Box Content Preview JS SDK(https://github.com/box/box-content-preview) to preview the files uploaded on our product. I tried SDK in JS fiddle and seems to work fine but when I integrated into the product I'm getting - "We're sorry, the preview didn't load. This document may be protected." for the same file. I have added both the domains in the app's CORS settings.
Can someone please help me resolve the issue? It's urgent. How comes the same code is working in JS fiddle?