Forum Discussion

Patrick Rote's avatar
Patrick Rote
Iron Contributor
Oct 08, 2018

How to use SharePoint CDN with font awesome.Error: Failed to load resource: the server responded wit

I have a sharepoint online site that has been setup for CDN(THIS IS NOT SPFX) and its using font awesome as part of the branding. The issue is its giving me the errors in the link below https://ibb.co/fx6K4U

A sample of the url webfont is

https://publiccdn.sharepointonline.com/sometenant.sharepoint.com/sites/UATBOX/style%20library/Folder/fonts/fontawesome-webfont.woff?v=VerNumber 

 

Also getting error CSS3116: @font-face failed cross-origin request. Resource access is restricted.

Thanks in Advance

3 Replies

  • Khalid Hajjouji's avatar
    Khalid Hajjouji
    Copper Contributor

    How and where do you load the fontawesome file? Is it by a custom action or in a content editor webpart? Or somewhere else?

    • Patrick Rote's avatar
      Patrick Rote
      Iron Contributor

      Thanks Khalid all the files are in  style library.

      i can see the reference when i do view source on the page but not sure how it was added and i can't see any ref in the masterpages

       

      • Patrick Rote's avatar
        Patrick Rote
        Iron Contributor

        Thanks Khalid.
        Found out that it was public CDN issue.

        Thanks

Resources