correcting CORS error

This commit is contained in:
2025-12-11 14:31:57 +01:00
parent 0beb5f3446
commit cea2c8cf47

View File

@@ -19,7 +19,7 @@ builder.Services.AddCors(options =>
{ options.AddDefaultPolicy(policyBuilder =>
{
policyBuilder
.WithOrigins("http://localhost:5298")
.WithOrigins("http://localhost:4200")
.WithMethods("GET", "POST", "PUT", "PATCH", "DELETE")
.AllowAnyHeader();
});