Consume SPFx through CDN

Mithun K S 0 Reputation points
2024-06-18T05:14:34.7233333+00:00

Hi Team,

We have an existing web application which is built using requireJS , backboneJS and internal framework . We want to consume/ include SPFx through CDN (not through npm module) to support sharepoint online and sharepoint related feature when our web application is added as sharepoint page.

We manily need SPFx support for below funtionality

  1. MS graph API (currently we are using MSAL but experience of SSO is not great)
  2. SharePoint Dialog
  3. Get SP related inforamation.

Thanks,

Mithun

Microsoft 365 and Office | SharePoint | Development
Microsoft Teams | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,491 Reputation points Microsoft External Staff
    2024-06-18T06:52:02.5566667+00:00

    Hi @Mithun K S,

    To consume a SharePoint Framework (SPFx) web part through the Microsoft 365 Content Delivery Network (CDN), you need to follow specific steps to ensure your web part is correctly packaged, deployed, and configured to use the CDN. Here’s a detailed guide:

    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/hosting-webpart-from-office-365-cdn


    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.


  2. Mithun K S 0 Reputation points
    2025-03-19T08:36:33.81+00:00

    Our web application is added as a SharePoint page (through Template → App) in SharePoint. It uses the TeamsJS SDK to initialize within SharePoint.


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.