Fix Microsoft Bookings Iframe Failing with X-Frame-Options SameOrigin
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.

- 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.
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.
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.
Log into your Microsoft Bookings dashboard, navigate to the Booking page settings, and copy the direct sharing link.
Locate the HTML file or content management system (CMS) block on your website containing the broken <iframe> tag and delete it.
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.

Contact Microsoft Support or the Bookings Community
If embedding is strictly required for your business, reach out to Microsoft to request supported integration methods or report the disrupted workflow.
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. Download the installer: Visit the WPS Office website and download the free installation package for your operating system.
- 2. Install the software: Run the installer and follow the quick on-screen instructions to set up the software.
- 3. Open your existing files: Launch WPS Office and directly open your existing .docx, .xlsx, or .pptx files to continue working seamlessly.

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.




