Forum Discussion
Juan M Baena
Apr 12, 2019Iron Contributor
Private CDN
Good Day: We have recently set up a Private CND against our O365/SharePont Online tenant. The SharePoint Framework solution that will leverage the private CDN origin is being completed at this p...
Beau Cameron
Apr 12, 2019MVP
Juan M Baena Unfortunately no. Private CDNs are not static URLs because they contain tokens that are auto-generated by SharePoint Online.
You can't host SharePoint Framework Solutions in a private CDN because of this reason. This shouldn't be a huge problem because client side code shouldn't really contain any proprietary business logic (or, you should at least avoid doing so).
- Juan M BaenaApr 15, 2019Iron Contributor
Beau Cameron thank you so much. So can we still use a Private CDN to host a SharePoint Framework static files, our SharePoint tenant does not allow anonymous access.
- Beau CameronApr 18, 2019MVP
Juan M Baena Static Files are fine, like Images or static scripts you are pulling into the application. It's just that your spfx code itself can't live in the CDN.