有没有人知道是否可以将SVG mime类型添加到Windows Azure网站?我尝试了一个web.config文件,但那只会破坏我的网站。
这是当前预览的限制,还是我遗漏了什么?
谢谢你的帮忙!
发布于 2021-07-18 20:09:56
其他像我一样的人可能因为其他相关的文件类型而导致同样的问题没有得到解决,在我的例子中,我还需要.eot
和.woff
mime映射。
<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>
https://stackoverflow.com/questions/11846689
复制相似问题