Published Outlook Calendar in an Iframe

Outlook Calendar User 20 Reputation points
2023-08-14T15:32:41.4266667+00:00

Hello,

About 3 years ago, I placed a published Outlook Calendar into my company's internal web site using an iframe:

<iframe src="{{linkToThePublishedCalendar}}" scrolling="no" width="100%" height="700px;" frameborder="0"></iframe>

It's been working without any issues all this time. A few days ago, all of a sudden, it stopped showing and started displaying an "outlook.office365.com refused to connect." error.

The browser (Google Chrome) console shows the following error:

chromewebdata/:1 Refused to display 'https://outlook.office365.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

And the status of the network request for calendar.html is displayed as (blocked:other). Its response headers indeed contain the X-Frame-Options header, with the value of "SAMEORIGIN".

I researched bypassing this issue, but found no easy solution. How can one embed an outlook calendar into a custom web page without an iframe?

The web has many examples of embedding an Outlook Calendar using an iframe, including some from Microsoft .

Please advise.

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
{count} votes

1 answer

Sort by: Most helpful
  1. peiye zhu 165 Reputation points
    2023-08-18T01:03:47.48+00:00

    if iframe unavailable, publish .ics file or create your own calendar?

    0 comments No comments

Your answer

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