wpmu can: blocked by CORS policy

Hi, i activated cdn and have some font awesome issues:

JQMIGRATE: Migrate is installed, version 1.4.1
/#:1 Access to font at 'https://hb.wpmucdn.com/fonts/fontawesome-webfont.woff2?v=4.7.0' from origin 'https://www.temptationloft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
/#:1 Access to font at 'https://hb.wpmucdn.com/fonts/fontawesome-webfont.woff?v=4.7.0' from origin 'https://www.temptationloft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
/#:1 Access to font at 'https://hb.wpmucdn.com/fonts/fontawesome-webfont.ttf?v=4.7.0' from origin 'https://www.temptationloft.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin'

I added this to .htaccess file:
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>

But its not helping, when trying to access these links directly i get an access denied error

I also loaded the relevant CSS in the footer under asset management settings. without succes

can you help me with this?

  • Ash
    • WordPress Hacker

    Hello Karim

    This happens if your fonts are included using a relative path in the source. That has to be using absolute path.

    Are you using any plugin for the fonts? If so, which plugin is this? Or did it come with the theme? Please let me know.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.