fix: 静态文件中间件允许未知文件类型并设置默认 Content-Type
This commit is contained in:
@@ -402,9 +402,11 @@ namespace Yi.Abp.Web
|
||||
{
|
||||
Mappings =
|
||||
{
|
||||
[".wxss"] = "text/css"
|
||||
}
|
||||
[".wxss"] = "text/css",
|
||||
}
|
||||
},
|
||||
ServeUnknownFileTypes = true,
|
||||
DefaultContentType = "application/octet-stream"
|
||||
});
|
||||
app.UseDefaultFiles();
|
||||
app.UseDirectoryBrowser("/api/app/wwwroot");
|
||||
|
||||
Reference in New Issue
Block a user