can we embed complete sharepoint website to an external website/web app

Maheshwari, Keshav 20 Reputation points
2026-09-23T05:43:31.1566667+00:00

my situation i need complte sharepoint website to be embeded into another webpage on that webpage you cna work around that ahrepoint basically opening that sharepoint site into another website that's what i wanted to acheive can we do it and if yes then how

Microsoft 365 and Office | SharePoint | Development
0 comments No comments

Answer accepted by question author
Teddie Dang 1,365 Reputation points Independent Advisor
2026-09-23T05:56:59.9533333+00:00

Hi @Maheshwari, Keshav

Based on Can't display SharePoint pages in iFrame - SharePoint | Microsoft Learn, SharePoint Online pages cannot be loaded inside an iFrame when they originate from a different domain. This is by design because SharePoint sets the X-FRAME-OPTIONS HTTP header to SAMEORIGIN.

Therefore, embedding the complete SharePoint site in an external webpage like this would not work:

<iframe src="https://contoso.sharepoint.com/sites/MySite"></iframe>

Microsoft also notes that overriding this behavior with AllowFraming is not recommended for security reasons, and some SharePoint functionality may not work correctly when loaded in an iFrame.

So, if your requirement is to embed the entire SharePoint Online site inside an external website on a different domain and retain normal SharePoint functionality, this is not a supported scenario.

As alternatives, you can:

  • Link users directly to the SharePoint site so it opens normally in the browser.
  • Build the required functionality into your external application using SharePoint APIs or Microsoft Graph APIs.

I hope this clarifies the limitation and the available alternatives.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.