Fix SharePoint Online Public CDN Access Denied Errors
Question details
Find a working public CDN URL for an asset after configuring a SharePoint Online public CDN origin.
- Product
- SharePoint Online public CDN
- Device & OS
- not provided
- Scenario
- A public CDN origin has been configured, and the user wants to access an asset through the CDN.
- Observed behavior
- Browsing directly to the public CDN host returns Access Denied, and the asset URL may not be available until configuration processing is complete.
Identify the full SharePoint URL of an asset in the configured public CDN origin. Confirm that the asset is intended for public distribution and that you can access it in SharePoint.
Generate an asset-specific SharePoint public CDN URL
Use the SharePoint public CDN endpoint to retrieve the generated URL for a specific asset instead of browsing to the CDN host.
Open the asset in SharePoint and copy its full URL, including the tenant, site, library, folders, and file name.
In a browser, open https://contoso.sharepoint.com/_vti_bin/publiccdn.ashx/url?itemurl=https://contoso.sharepoint.com/siteassets/folder1/folder2/image.jpg. Replace both tenant references and the asset path with your own values.
Check the endpoint response for a URL resembling https://publiccdn.sharepointonline.com/contoso.sharepoint.com/identifier/folder2/image.jpg, then open that returned URL in your browser.
If no CDN URL is returned, wait for SharePoint to finish processing the public CDN configuration and retry the endpoint. If the issue persists, check the origin configuration and Microsoft’s public CDN documentation.

Work with downloaded SharePoint documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working on compatible documents downloaded from SharePoint. It does not configure or repair SharePoint CDN access.

Frequently Asked Questions
Why does the public CDN host show Access Denied?
The CDN host is not the asset-specific URL. Use the SharePoint public CDN endpoint with the itemurl parameter to request the generated URL for a file.
What should I do if the endpoint does not return a CDN URL?
Allow time for the CDN configuration to propagate, then retry the endpoint. If it still fails, check that the asset is in the configured public origin and review Microsoft’s public CDN documentation.
Can I use a public CDN for confidential files?
No. A public CDN origin is intended for publicly accessible content. Keep confidential files out of public origins.
Can WPS Office fix a SharePoint CDN Access Denied error?
No. The CDN configuration and URL must be checked in SharePoint Online. WPS Office can help you work with compatible documents after you download them.




