onedrive iframe-code is not working

Jan Niezen 20 Reputation points
2026-08-23T10:06:36.74+00:00

The iframe code stopped working a few days ago. Even a newly generated code results in a blank screen.

Microsoft 365 and Office | OneDrive | For home | Windows
0 comments No comments

Answer accepted by question author
Lucus-V 11,435 Reputation points Microsoft External Staff Moderator
2026-08-23T17:42:28.42+00:00

Hi Jan Niezen,

To help narrow this down, could you please provide a few additional details?

  1. Does the issue occur with all embedded files or only specific files?
  2. When you open the generated embed link directly in a browser tab (outside of the iframe), does the file load correctly?
  3. Have you tested the embed code in a different browser or an InPrivate/Incognito window?
  4. What website or platform are you embedding the iframe into (custom HTML site, WordPress, Google Sites, etc.)?
  5. When the page displays blank, do you see any errors in the browser's Developer Tools (F12) under the Console or Network tabs?
  6. Has anything recently changed on the hosting website, such as security settings, Content Security Policy (CSP), or iframe restrictions?

Since you mentioned that both existing and newly generated embed codes result in the same blank screen, this will help determine whether the issue is related to the OneDrive embed service itself, the sharing link, browser behavior, or restrictions on the hosting site.

I look forward to your update.

Was this answer helpful?

1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Jan Niezen 20 Reputation points
    2026-08-27T16:16:32.1533333+00:00

    Problem solved, everything works again.

    Was this answer helpful?

    1 person found this answer helpful.

  2. Jan Niezen 20 Reputation points
    2026-08-23T10:12:18.4466667+00:00

    I regenerated the code and also analyzed and adjusted it using AI. Nothing has been working for 3 days now.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.