This problem happens because IIS does not know about woff and woff2 file mime types.
To solve this problem, we can add the following lines in the web.config file.
<configuration> <system.web> ... </system.web> <system.webServer> <staticContent> <remove fileExtension=".woff" /> <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> <remove fileExtension=".woff2" /> <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" /> </staticContent> </system.webServer> </configuration>
Reference:
原文作者:;如有侵权,请联系管理员删除。