Skip to main content
Question

Display Box.com in an IFrame

  • May 21, 2025
  • 6 replies
  • 85 views

Forum|alt.badge.img

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!

6 replies

Forum|alt.badge.img

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


Forum|alt.badge.img

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?

 


Forum|alt.badge.img

 Unfortunately, embedding a Box Note is currently not supported through the API. 


Forum|alt.badge.img

Is there a plan to resume support for embedded box notes? It was working fine until recently.


Forum|alt.badge.img

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. 

 


Forum|alt.badge.img

Hello! Our Engineering Team behind Box Notes recently introduced changes that should now enable the embedding of Box Notes. Please give it a try and let us know if this is working for you now.