Use SVG in Windows Azure Websites Use SVG in Windows Azure Websites azure azure

Use SVG in Windows Azure Websites


What you can do in Windows Azure Websites (on web.config level) is pretty limited, but you should be allowed to add the mime type under staticContent:

<configuration>   <system.webServer>      <staticContent>         <remove fileExtension=".svg"/>         <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />      </staticContent>   </system.webServer></configuration>


Others like me may have reached here having the same problem not resolved because of other related file types, in my case I also needed .eot and .woff mime mappings.

<system.webServer>    <staticContent>        <remove fileExtension=".svg" />        <remove fileExtension=".eot" />        <remove fileExtension=".woff" />        <mimeMap fileExtension=".svg" mimeType="image/svg+xml"  />        <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />        <mimeMap fileExtension=".woff" mimeType="application/x-woff" />    </staticContent></system.webServer>