From 330928c3899ca32620a244e1b3cdb18f366d6d71 Mon Sep 17 00:00:00 2001 From: hz Date: Mon, 12 May 2025 14:16:19 -0700 Subject: [PATCH] Cors --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index b109370..c6fb46c 100644 --- a/Program.cs +++ b/Program.cs @@ -86,10 +86,10 @@ app.UseSwagger(); app.UseSwaggerUI(); app.UseMiddleware(); - +app.UseCors("AllowAll"); app.UseAuthentication(); app.UseAuthorization(); -app.UseCors(); + app.MapControllers(); app.Run(); \ No newline at end of file