CDN: font file support - Community forums - Akumina Community

Community forums

Forum Navigation
You need to log in to create posts and topics.

CDN: font file support

There is a CORS issue with CDNs serving Font files – they are present on the CDN and yet cannot be downloaded due to a CORS issue. This is a missing configuration.

 

For the Azure CDN

You need to enable the SharePoint site as an allowed CORS origin; see

https://www.devtrends.co.uk/blog/hosting-web-fonts-in-azure-blob-storage-using-the-new-cors-support

https://docs.microsoft.com/en-us/rest/api/storageservices/Cross-Origin-Resource-Sharing--CORS--Support-for-the-Azure-Storage-Services?redirectedfrom=MSDN

 

For the SharePoint CDN

You need to view the allowed file types:

Get-SPOTenant | Select PublicCdnAllowedFileTypes

Then modify as needed:

Set-SPOTenant -PublicCdnAllowedFileTypes "CSS,EOT,GIF,ICO,JPEG,JPG,JS,MAP,PNG,SVG,TTF,WOFF,WOFF2"

 

//]]>