3

I use CDN for my cloud services in Azure, but fonts (*.woff) does not work!

When i use just iis for static files i solve this problem like

<staticContent>
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
</staticContent>

(http://stackoverflow.com/questions/3594823/mime-type-for-woff-fonts)

But how i can do it in microsoft azure cdn?

David Makogon
  • 69,407
  • 21
  • 141
  • 189
Viktor Kulikov
  • 269
  • 2
  • 12

1 Answers1

1

Its cross-domain so you also need to add:

<system.webServer>
 <httpProtocol>
  <customHeaders>
    <add name="Access-Control-Allow-Origin" value="*" />
    <add name="Access-Control-Allow-Methods" value="HEAD,GET,OPTIONS" />
  </customHeaders>
 </httpProtocol>
</system.webServer>
Ben Adams
  • 3,281
  • 23
  • 26