From cea2c8cf470fe88d01ec8adf40916f4ef3f8ddde Mon Sep 17 00:00:00 2001 From: carteronm Date: Thu, 11 Dec 2025 14:31:57 +0100 Subject: [PATCH] correcting CORS error --- PyroFetes/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyroFetes/Program.cs b/PyroFetes/Program.cs index 213d784..03ac2b2 100644 --- a/PyroFetes/Program.cs +++ b/PyroFetes/Program.cs @@ -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(); });