title: How to get through CORS policy to load fonts?
body: <p>To get access to my font i use @font-face.</p>
  
  <pre><code>@font-face {
      font-family: 'Brandon Grotesque Regular';
      src: url('http://server/font/brandon_reg-webfont.eot');
      src: url('http://server/font/brandon_reg-webfont.eot?#iefix') format('embedded-opentype'),
           url('http://server/font/brandon_reg-webfont.woff2') format('woff2'),
           url('http://server/font/brandon_reg-webfont.woff') format('woff'),
           url('http://server/font/brandon_reg-webfont.ttf') format('truetype'),
           url('http://server/font/brandon_reg-webfont.svg#brandon_grotesque_regularRg') format('svg');
      font-weight: normal;
      font-style: normal;
  }
  </code></pre>
  
  <p>Unfortunetly i'm not able to get access to my fonts, my request has been blocked by CORS policy.</p>
  
  <blockquote>
    <p>Access to Font at
    '<a href="http://server/font/brandon_blk-webfont.woff2" rel="nofollow noreferrer">http://server/font/brandon_blk-webfont.woff2</a>'
    from origin '<a href="http://server.fr" rel="nofollow noreferrer">http://server.fr</a>' has been blocked by CORS policy:
    No 'Access-Control-Allow-Origin' header is present on the requested
    resource. Origin '<a href="http://localhost:8888" rel="nofollow noreferrer">http://localhost:8888</a>' is therefore not allowed
    access.</p>
  </blockquote>
  
  <p>So I edit a .htaccess </p>
  
  <pre><code>AddType application/vnd.ms-fontobject .eot
  AddType font/ .ttf
  AddType font/ .eot
  AddType font/ .otf
  AddType font/ .woff
  AddType font/ .woff2
  &lt;FilesMatch ".(ttf|otf|eot|woff|woff2)"&gt;
  &lt;IfModule mod_headers.c&gt;
      Header set Access-Control-Allow-Origin "*"
  &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  </code></pre>
  
  <p>It didn't work either. Any ideas ?</p>