Confusion with iframes

I’m trying to embed a Microsoft Word file from OneDrive into an iFrame component in Retool. I used the embed code from OneDrive.

When I paste just the src URL into the iFrame component in Retool, the frame shows up blank. I also tried the short 1drv.ms link directly, but it doesn’t render.

My questions are:

  1. Does Retool support embedding OneDrive files using the 1drv.ms embed links?

  2. Is there a recommended approach for reliably embedding Word/PDF files from OneDrive into Retool iFrames?

Thanks in advance for your guidance!

Hello @Vipin_Kaniyanthara,

  • Retool doesn’t support short 1drv.ms links in iFrames. These are redirector URLs, and most iFrames can’t resolve them due to authentication and X-Frame-Options, which is why the frame appears blank.

  • I also tested this in my app using OneDrive I uploaded a Word file, extracted the embed link, and added it to the iFrame component. However, it still showed an error, even after sharing the file publicly and it redirects to my Onedrive.

1 Like

Thank you

1 Like