Problem with font in Chrome – CORS

Home Forums Use Any Fonts Problem with font in Chrome – CORS

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10364
    Beatrice Karlsson
    Guest

    The font i upload and assign does not work in my Chrome-browser. It seems to work in Safari etc.

    When I inspect the code in my browser, it warns me about Access controll allow original is denied. I have tried to read about What to do with this problem, called CORS, but i can not solve it.

    Can you help me? What should i do?

    #10372
    Dinesh
    Keymaster

    Hi Beatrice,

    I just checked your site here in chrome and couldn’t find and CORS issue.

    If you are still getting the issue, you can keep this in your htaccess file. This should fix it.

    <FilesMatch "\.(ttf|otf|eot|woff|css)$">
      <IfModule mod_headers.c>
        Header set Access-Control-Allow-Origin "*"
      </IfModule>
    </FilesMatch>

    Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Problem with font in Chrome – CORS’ is closed to new replies.