How to Edit SharePoint Word Documents in an External Web Iframe
Question details
The user wants to know if they can embed and natively edit a SharePoint Word document within an iframe on a third-party web application.

- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- Integrating SharePoint Word document viewing and editing capabilities into an external web application architecture.
- Observed behavior
- SharePoint Online blocks editable Word for the web content inside iframes hosted on external domains due to security policies, lacking a tenant exemption.
Verify your current SharePoint site permissions and ensure you have administrative access to configure external sharing links or Microsoft Graph API app registrations.
Use Microsoft Graph API and Web URLs for Editing
Since direct iframe editing is unsupported by Microsoft, utilize the Microsoft Graph API for read-only previews and direct users to Microsoft's hosted interface for editing.
SharePoint Online does not currently provide a supported tenant setting, app registration, or exemption for embedding editable Word for the web content inside an iframe on an external domain.
Use SharePoint Online or SharePoint Embedded combined with Microsoft Graph to manage your document storage and user permissions securely.
To display the document inside your external application safely, use the 'driveItem/preview' endpoint to generate an embeddable read-only preview.
Retrieve the document's 'webUrl' or generate a share link via the API. Configure your web application to open this link in a new browser tab or window.
Allow users to edit and co-author the document directly within Microsoft's natively hosted SharePoint interface to ensure full functionality and compliance.
Try WPS Office for Seamless Document Management
If SharePoint's iframe limitations disrupt your workflow, consider using WPS Office as a standalone solution for creating, editing, and managing your daily documents. It is completely free, lightweight, and ensures excellent compatibility with Microsoft Word formats.

Frequently Asked Questions
Can I use SharePoint Embedded to edit Word documents inside my own app's UI?
No. While SharePoint Embedded supports Office for the web editing and co-authoring, the actual document editor still runs within Microsoft's hosted interface, not natively within your app's iframe.
Why does SharePoint block Word document editing in external iframes?
Microsoft restricts editable Word content in external iframes to enforce security policies. This prevents clickjacking attacks and unauthorized cross-domain actions. Currently, there are no tenant settings to bypass this restriction.
Is there a way to display read-only SharePoint documents in an iframe?
Yes. You can use the Microsoft Graph API's 'driveItem/preview' endpoint to generate an embeddable, read-only preview of the Word document for your external web application.




