Apr 12 2019 05:41 AM
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!
Apr 12 2019 08:06 AM
@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).
Apr 15 2019 04:59 AM
@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.
Apr 18 2019 08:25 AM
@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.