From 744a617d121da2a3b349bd345b151534ad9fca7d Mon Sep 17 00:00:00 2001 From: hz Date: Mon, 12 May 2025 14:19:40 -0700 Subject: [PATCH] Cors --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index c6fb46c..d593e7a 100644 --- a/Program.cs +++ b/Program.cs @@ -81,12 +81,12 @@ builder.Services.AddCors(options => }); var app = builder.Build(); - +app.UseCors("AllowAll"); app.UseSwagger(); app.UseSwaggerUI(); app.UseMiddleware(); -app.UseCors("AllowAll"); + app.UseAuthentication(); app.UseAuthorization();