Private CDN

Iron Contributor

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 point.  One of our developers was asking if there is a way that we could execute a quick test for accessing test files placed on the private CDN defined origin.

 

Our developer did a quick test initially with a Public CDN with a tool by making a Get request by providing the full URL (https://publiccdn.sharepointonline.com/sitecollection/library/folder/file).  The question is if there is some sort of equivalent URL for a private CDN i.e https://privatecdn.sharepoitonline....  Thanks!

 

 

3 Replies

@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).


@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. 

@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.