Security Policy Errors

Fix Microsoft Bookings Iframe Failing with X-Frame-Options SameOrigin

Jason MillerJason Miller Oct 16, 2026 868 views

Question details

The user is attempting to embed a Microsoft Bookings page on a website using an iframe, but it fails to load due to a cross-origin security restriction.

Fix Microsoft Bookings Iframe Failing with X-Frame-Options SameOrigin
Product
Microsoft Bookings
Device & OS
not provided
Scenario
Displaying a Microsoft Bookings calendar inside an iframe on an external, third-party website.
Observed behavior
The browser refuses to render the iframe content because Outlook or Exchange Online servers send an 'X-Frame-Options: sameorigin' HTTP header.
Before you start

Press F12 to open your browser's Developer Tools and check the Console or Network tab to confirm the block is explicitly caused by the 'X-Frame-Options: sameorigin' response header.

Solution 1Recommended

Replace the Iframe with a Direct Booking Button

Since the X-Frame-Options header is enforced by Microsoft and cannot be overridden by external website settings, replacing the iframe with a direct link is the most reliable workaround.

The 'sameorigin' policy is a browser-level security feature implemented by Microsoft to prevent clickjacking. Because you cannot change server-side headers for Microsoft Bookings, modifying your website's HTML is required.

1
Copy your Bookings URL

Log into your Microsoft Bookings dashboard, navigate to the Booking page settings, and copy the direct sharing link.

2
Remove the iframe code

Locate the HTML file or content management system (CMS) block on your website containing the broken <iframe> tag and delete it.

3
Insert a call-to-action button

Create an HTML button or text link using the Bookings URL. Add the attribute target="_blank" to the <a> tag so the booking page opens in a new tab without navigating users away from your site.

Replace the Iframe with a Direct Booking Button
Enhanced Security: Using a direct link opening in a new tab ensures full compliance with modern browser security standards and provides a reliable experience across all mobile and desktop devices.
Free Microsoft Office alternative

Enhance Your Daily Workflow with WPS Office

While cloud service security policies can unexpectedly disrupt web integrations, your local document productivity shouldn't be compromised. WPS Office is a highly compatible, free alternative to Microsoft Office that gives you complete control over your schedules, spreadsheets, and presentations without relying on restrictive browser policies.

  1. 1. Download the installer: Visit the WPS Office website and download the free installation package for your operating system.
  2. 2. Install the software: Run the installer and follow the quick on-screen instructions to set up the software.
  3. 3. Open your existing files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptx files to continue working seamlessly.
Fully compatible with Microsoft Word, Excel, and PowerPoint file formats.Rich library of customizable calendar and scheduling templates to track appointments.Lightweight application that works seamlessly offline on any device.Clean, familiar user interface for a zero-learning-curve transition.
QA img-9

Frequently Asked Questions

What does the X-Frame-Options sameorigin error mean?

It is an HTTP security header set by the server hosting the content (in this case, Microsoft Exchange/Bookings). It instructs the web browser to refuse to display the page in an iframe unless the website attempting to embed it shares the exact same domain name.

Can I bypass the X-Frame-Options header using HTML or JavaScript on my site?

No. The X-Frame-Options restriction is enforced by the visitor's web browser as a fundamental security measure to prevent clickjacking attacks. You cannot override it using code on your own website.

Why did my Microsoft Bookings iframe suddenly stop working recently?

Microsoft regularly updates the security policies for their cloud services. They likely added the X-Frame-Options header in a recent update to Outlook or Exchange Online to improve data security and comply with stricter industry standards.