今天在请求静态的json档案以及woff2档案,会返回404错误,需要在Web.Config里修改:

 

 1  <system.webServer>
 2     <modules>
 3       <remove name="FormsAuthentication" />
 4     </modules>
 5     <handlers>
 6       <add name="MiniProfiler" path="mini-profiler-resources/*" verb="*" type="System.Web.Routing.UrlRoutingModule" resourceType="Unspecified" preCondition="integratedMode" />
 7     </handlers>
 8     <staticContent>
 9       <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
10       <mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
11     </staticContent>
12   </system.webServer>

 

相关文章:

  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2021-08-25
  • 2021-07-03
  • 2021-08-10
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案