Download in Browser
Download in Browser
Sometimes an application wants to embed a file into a page as a HTML element. An example would be when working with an audio player.
<audio controls>
<source src="..." type="audio/mp3">
</audio>
In this case, using the regular download URL does not work because the
dl.boxcloud.com
domain does not support Cross Origin Resource Sharing.
Instead an application can use the following format.
https://api.box.com/2.0/files/[FILE_ID]/content?access_token=[ACCESS_TOKEN]