Share via

Embed sharepoint folder/list on external website

Anonymous
2021-07-07T08:41:21+00:00

I am trying to embed a sharepoint online folder on an external website. However, CSP is configured and it blocks the ability to embed the sharepoint online folder on my website.

Is there any way to configure Sharepoint online to allow embedding on my website?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2021-07-08T11:28:37+00:00

    Hi JAO001,

    Thanks for your post in this community.

    I think Tin has misunderstood your question and we apologize for that.

    For security reasons, you may not use iframe structure to embed SharePoint list/library/pages on your own website.

    If you just want to display the list items on your website without them been edit, Microsoft Graph API is your choice:

    Enumerate items in a list

    However, if you expect the users on your website to be able to CRUD the list item, you will need to use SharePoint Rest API.

    Complete basic operations using SharePoint REST endpoints

    As the coding related questions is not supported in this community. If you are having trouble in how to use these APIs or how to integrate these APIs with your website. Please post a new thread in the Microsoft Q&A community for further assistance.

    Appreciate for your patience and understanding.

    Regards,

    Alex Chen

    Was this answer helpful?

    0 comments No comments

5 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-07-08T09:29:42+00:00

    No, the question is NOT about Dynamics. The question is about Sharepoint Online I only mentioned Dynamics as an example of what Sharepoint Online could do.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-07-08T08:49:55+00:00

    Hi JAO001:

    Thank you for your reply.

    It seems that your issue is related to CSP.

    So, to avoid sharing any incorrect information from our side, it’s also recommended to ask the question  in the Microsoft Dynamics Community - Forums, Blogs, Videos, Support for a better help. Since your issue is relate to CSP, it is better suited to post in that community. And it has more experts in this area to help you.

    Thank you for your understanding.

    If I have any misunderstands, welcome to contact me. And I will further investigate it.

    Best Regards,

    Tin

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2021-07-07T12:30:28+00:00

    Thanks for the reply. I am not looking on how to embed a sharepoint library in another sharepoint page. I am looking for how to embed a sharepoint file library on an external website.

    Edit: ideally it would be nice if we could edit CSP like in Dynamics 365: https://docs.microsoft.com/en-us/dynamics365/commerce/manage-csp

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2021-07-07T12:24:06+00:00

    Hi JAO001:

    We would like to how you embed a sharepoint online folder on an external website. However, if you want to display a document library on your SharePoint site, we kindly recommend using the Document Library web part.

    Add a document library to a page:

    1. If you want a custom view of your library to appear on your page, create the view.
    2. Go to the page where you want to add the library.
    3. If your page is not already in edit mode, click Edit at the top right of the page. Hover your mouse above or below an existing web part and you'll see a line with a circled +, like this:
    4. Click +, and then select Document Library from the list of web parts.
    5. Select the document library you want to put on your page.
    6. Click Edit web part Web part edit button on the left side to change the Document library, the View of your library, and the size. You can also display a specific folder in the library by entering the folder name (use a "/" to separate the names of nested folders - in the example below, Projects is a folder in the Documents library, and Presentations is the nested folder):
    7. When you're done, click Apply.
    8. When you're ready, click Publish at the top right of your page.

    More information for you to reference:Use the Document Library web part - Office Support (microsoft.com)

    Hope this will help you.

    Tin

    Was this answer helpful?

    0 comments No comments