Is it possible embed SharePoint site in IFrame as a source from asp.net core web app

Dharma Reddy Bojjireddy 0 Reputation points
2024-08-05T22:28:30.1966667+00:00

Hi Team,

We have a scenario for integrating or embedding the SharePoint site in a web app. We tried to embed the SharePoint site in an IFrame and got an error as attached in the snap.

Error information:
User's image

User's image

SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,933 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 34,901 Reputation points Microsoft Vendor
    2024-08-06T05:23:40.33+00:00

    Hi @Dharma Reddy Bojjireddy,

    As far as I know, You can't host SharePoint site in asp.net core web app. As a workaround, you could register it as provider hosted add-in web component(you could host asp.net core web app in azure).Please refer to following document

    How to create SharePoint Online add-in with ASP.NET Core 2.1


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.