I have setup a public CDN in our SharePoint environment and the following cmdlet shows that it was successful

Set-SPOTenantCdnEnabled -CdnType Public

Public CDN enabled locations:





However when I try to access it anonymously, I get prompted with the O365 login. How can an external user access the Public CDN if it's behind a login wall. Am I misunderstanding how they should work?

Based on this article, anyone should be able to access the assets within my CDN by just having the URL

1 Answer 1


The article you link to says, "Requests for data in the Office 365 SharePoint CDN must be referred (redirected) from your Office 365 tenant or an authorization token will not be generated." It qualifies that other CDNs may have different standards, but it looks as if the expected default CDN behavior is exactly what you are experiencing.

  • That's so confusing because it also says "Content in public origins within the Office 365 CDN is accessible anonymously, and can be accessed by anyone who has URLs to hosted assets." Otherwise, why would it be called 'Public' ? Commented Nov 18, 2019 at 16:23
  • I speculate that "public origins" doesn't include SharePoint, but I agree that it is not written clearly.
    – CarlF
    Commented Nov 18, 2019 at 20:28
  • There is a Azure CDN resource available, maybe that will do the trick for us Commented Nov 18, 2019 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.