swagger不能放出去 修复漏洞

This commit is contained in:
范露尧
2023-04-26 14:15:42 +08:00
parent 9f54c060e8
commit 84741d1eee

View File

@@ -101,7 +101,7 @@ namespace QRCodeService
//if (env.IsDevelopment())
//{
app.UseDeveloperExceptionPage();
app.UseSwagger();
//app.UseSwagger();
//app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "QRCodeService v1"));
//}
app.UseForwardedHeaders();