问题
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?
回答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>
来源:https://stackoverflow.com/questions/12091871/windows-azure-cdn-and-woff-fonts