Javascript Preview SDK to read all folders and files in a box account
Hi everyone,
I'm trying to use Javascript Preview SDK to read all files in box account from my web application. There is some way to use a default ID that allow me to read all folders and files in the box account? Currently, I'm trying to use:
Box.Preview.show('FILE_ID',{ token: access_token, container: '.preview-container', showDownload: true });
The access_token is obtained through the procedures described in the page link to box page. Besides, using the code above I obtain this error:
"""No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."""
How can I set request header using Javascript Preview SDK?
Thank for the response.
サインインしてコメントを残してください。
コメント
1件のコメント