fix: cors allows any method for known origins

This commit is contained in:
2025-07-21 11:15:05 +02:00
parent d99755e7af
commit ddfab4dac1

View File

@@ -33,7 +33,9 @@ builder.Services.AddCors(options =>
{ {
policy policy
.WithOrigins(CorsOrigins.ToArray()) .WithOrigins(CorsOrigins.ToArray())
.AllowAnyHeader(); // this might not be the greatest idea // this might not be the greatest idea:
.AllowAnyHeader()
.AllowAnyMethod();
}); });
}); });