Display Box.com in an IFrame
Hi All,
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!
-
Hey there,
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
- Mike
-
Hi,
I would like to display box note in my application. User should be able to edit box note in my application. I added to my app below code:
In iframe I see information: This shared file or folder link has been removed or is unavailable to you. Any idea how to fix this?
-
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.
Vous devez vous connecter pour laisser un commentaire.
Commentaires
6 commentaires