json文件访问不了问题

DataMaintenance
洁 任 2026-01-23 08:46:09 +08:00
parent c983df681d
commit ca4ad048e7
1 changed files with 2 additions and 1 deletions

View File

@ -364,7 +364,8 @@ namespace OpenAuth.WebApi
{ ".xls","application/vnd.ms-excel" },
{ ".pdf","application/pdf"},
{".xml", "text/xml"},
{".sld", "text/xml"}
{".sld", "text/xml"},
{".json","application/json" }
})
};
app.UseStaticFiles(staticfile);