Private CDN

%3CLINGO-SUB%20id%3D%22lingo-sub-444559%22%20slang%3D%22en-US%22%3EPrivate%20CDN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-444559%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20Day%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20recently%20set%20up%20a%20Private%20CND%20against%20our%20O365%2FSharePont%20Online%20tenant.%26nbsp%3B%20The%20SharePoint%20Framework%20solution%20that%20will%20leverage%20the%20private%20CDN%20origin%20is%20being%20completed%20at%20this%20point.%26nbsp%3B%20One%20of%20our%20developers%20was%20asking%20if%20there%20is%20a%20way%20that%20we%20could%20execute%20a%20quick%20test%20for%20accessing%20test%20files%20placed%20on%20the%20private%20CDN%20defined%20origin.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOur%20developer%20did%20a%20quick%20test%20initially%20with%20a%20Public%20CDN%20with%20a%20tool%20by%20making%20a%20Get%20request%20by%20providing%20the%20full%20URL%20(%3CA%20href%3D%22https%3A%2F%2Fpubliccdn.sharepointonline.com%2Fsitecollection%2Flibrary%2Ffolder%2Ffile).%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fpubliccdn.sharepointonline.com%2Fsitecollection%2Flibrary%2Ffolder%2Ffile).%26nbsp%3B%3C%2FA%3E%20The%20question%20is%20if%20there%20is%20some%20sort%20of%20equivalent%20URL%20for%20a%20private%20CDN%20i.e%20%3CA%20href%3D%22https%3A%2F%2Fprivatecdn.sharepoitonline....%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fprivatecdn.sharepoitonline....%26nbsp%3B%3C%2FA%3E%20Thanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-444559%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-445708%22%20slang%3D%22en-US%22%3ERe%3A%20Private%20CDN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-445708%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F18815%22%20target%3D%22_blank%22%3E%40Juan%20M%20Baena%3C%2FA%3E%26nbsp%3BUnfortunately%20no.%20Private%20CDNs%20are%20not%20static%20URLs%20because%20they%20contain%20tokens%20that%20are%20auto-generated%20by%20SharePoint%20Online.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can't%20host%20SharePoint%20Framework%20Solutions%20in%20a%20private%20CDN%20because%20of%20this%20reason.%20This%20shouldn't%20be%20a%20huge%20problem%20because%20client%20side%20code%20shouldn't%20really%20contain%20any%20proprietary%20business%20logic%20(or%2C%20you%20should%20at%20least%20avoid%20doing%20so).%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-453761%22%20slang%3D%22en-US%22%3ERe%3A%20Private%20CDN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-453761%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F39836%22%20target%3D%22_blank%22%3E%40Beau%20Cameron%3C%2FA%3E%26nbsp%3B%20thank%20you%20so%20much.%26nbsp%3B%20So%20can%20we%20still%20use%20a%20Private%20CDN%20to%20host%20a%20SharePoint%20Framework%20static%20files%2C%20our%20SharePoint%20tenant%20does%20not%20allow%20anonymous%20access.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-472057%22%20slang%3D%22en-US%22%3ERe%3A%20Private%20CDN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-472057%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F18815%22%20target%3D%22_blank%22%3E%40Juan%20M%20Baena%3C%2FA%3E%26nbsp%3BStatic%20Files%20are%20fine%2C%20like%20Images%20or%20static%20scripts%20you%20are%20pulling%20into%20the%20application.%20It's%20just%20that%20your%20spfx%20code%20itself%20can't%20live%20in%20the%20CDN.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Regular 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
Highlighted

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


Highlighted

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

Highlighted

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