From 4dcb5b3e4dfed3ac4f7b8c5b123e88e1be068e29 Mon Sep 17 00:00:00 2001 From: Bart Koelman <10324372+bkoelman@users.noreply.github.com> Date: Mon, 14 Sep 2026 01:11:11 +0200 Subject: [PATCH] Fix CORS port number --- TodoListAPI/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TodoListAPI/Program.cs b/TodoListAPI/Program.cs index 0e5e132..59229c8 100644 --- a/TodoListAPI/Program.cs +++ b/TodoListAPI/Program.cs @@ -105,7 +105,7 @@ { app.UseCors(policy => { - policy.WithOrigins("http://localhost:4200").AllowAnyHeader().AllowAnyMethod().AllowCredentials(); + policy.WithOrigins("http://localhost:5000").AllowAnyHeader().AllowAnyMethod().AllowCredentials(); }); }