• Resolved Harris Marfel

    (@hrace009)


    How to fix Access to font at 'https://cdn.domain.com/sub.domain.com/wp-content/themes/magone-lite/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff2?v=4.5.0' from origin 'https://sub.domain.com has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello,

    Please add the following to your .htaccess file:

    <FilesMatch "\.(ttf|otf|eot|woff)$">
        <IfModule mod_headers.c>
            SetEnvIf Origin "http(s)?://(cdn|sub)\.domain\.com$" AccessControlAllowOrigin=$0
            Header add Access-Control-Allow-Origin %{AccessControlAllowOrigin}e env=AccessControlAllowOrigin
            Header merge Vary Origin
        </IfModule>
    </FilesMatch>

    Or if unsure where to add it, share your .htaccess file so we can modify it.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS Not Load’ is closed to new replies.