refactor: remove unused OwaspHeaders middleware from Program.cs

This commit is contained in:
Jean Gatto
2025-03-22 09:50:09 -03:00
parent a235c886d9
commit 07e638d594
-2
View File
@@ -14,7 +14,6 @@ using Microsoft.AspNetCore.ResponseCompression;
using Microsoft.AspNetCore.Routing; using Microsoft.AspNetCore.Routing;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Hosting;
using OwaspHeaders.Core.Extensions;
using Scalar.AspNetCore; using Scalar.AspNetCore;
using Shop.Application; using Shop.Application;
using Shop.Core; using Shop.Core;
@@ -129,7 +128,6 @@ app.MapScalarApiReference(scalarOptions =>
app.UseErrorHandling(); app.UseErrorHandling();
app.UseResponseCompression(); app.UseResponseCompression();
app.UseHttpsRedirection(); app.UseHttpsRedirection();
app.UseSecureHeadersMiddleware();
app.UseMiniProfiler(); app.UseMiniProfiler();
app.UseCorrelationId(); app.UseCorrelationId();
app.UseAuthentication(); app.UseAuthentication();