Display Box.com in an IFrame
I am trying to display Box.com files/folders in Iframe of my HTML page and I am getting the following error:
This content can't be shown in a frame
|This content can’t be shown in a frame|
There is supposed to be some content here, but the publisher doesn’t allow it to be displayed in a frame. This is to help protect the security of any information you might enter into this site.
is there a way to display box.com in an IFrame. Please help!
The best way to do this would be to use Box Embed. You can easily generate the iFrame using the Box web application's UI.
You can learn more here: https://developer.box.com/docs/box-embed
I'm also having issues displaying box in an iframe in chrome due to the following console error:
Refused to display 'https://byu.app.box.com/notes/***number removed for privacy***497?isReadonly=1&is_preview=1&s=32yuk22wrwkqqhc0uneyqry3uh50k9ua' in a frame because it set 'X-Frame-Options' to 'sameorigin'
With the 'sameorgin' flag set the browser expects to render the screen on the same domain it originated from. Using it in an IFrame breaks this contract and chrome enforces the contract by refusing to display the content. work in internet explorer fine though.
Please sign in to leave a comment.