关于Failed to load resource: the server responded with a status of 404 (Not Found)报错原因

时间:2024-04-03 09:59:29

问题:

关于Failed to load resource: the server responded with a status of 404 (Not Found)报错原因

解决:后台的朋友给了个解决方案:配置下服务器的Mime类型这个类型
关于Failed to load resource: the server responded with a status of 404 (Not Found)报错原因

<staticContent>
      <remove fileExtension=".woff"/>
      <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
      <remove fileExtension=".woff2"/>
      <mimeMap fileExtension=".woff2" mimeType="application/x-font-woff2" />
      <remove fileExtension=".ttf" />
      <mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" />
      <remove fileExtension=".svg" />
      <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
      <remove fileExtension=".otf" />
      <mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" />
      <remove fileExtension=".eot" />
      <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
    </staticContent>