LoginSignup
6
7

More than 5 years have passed since last update.

IE9以降でwebfontが文字化けする原因と解決策

Posted at

クロスドメインのセキュリティ・ポリシーが変更されたみたいなそんなことが原因らしい。

fontフォルダの直下に以下の.htaccessをぶっこめばおk

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

参考:CSS3117 in IE9 and IE10: @font-face failed cross-origin request errors

6
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
7