From ddfab4dac18260e1e0d6d06f3857f5075621b53b Mon Sep 17 00:00:00 2001 From: eee4 <41441600+eee4@users.noreply.github.com> Date: Mon, 21 Jul 2025 11:15:05 +0200 Subject: [PATCH] fix: cors allows any method for known origins --- Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index a1f06b1..7443060 100644 --- a/Program.cs +++ b/Program.cs @@ -33,7 +33,9 @@ builder.Services.AddCors(options => { policy .WithOrigins(CorsOrigins.ToArray()) - .AllowAnyHeader(); // this might not be the greatest idea + // this might not be the greatest idea: + .AllowAnyHeader() + .AllowAnyMethod(); }); });