From d779e4152eb64ae80b9fade9be85065ac4d9b6a8 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 11 Sep 2026 14:59:11 +0200 Subject: [PATCH] Added specific origin --- PostFundManagement.Api/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostFundManagement.Api/Program.cs b/PostFundManagement.Api/Program.cs index 662e0ee..47a993c 100644 --- a/PostFundManagement.Api/Program.cs +++ b/PostFundManagement.Api/Program.cs @@ -92,7 +92,7 @@ builder.Services.AddOpenApi(options => }); builder.Services.AddCors(options => options.AddPolicy("AllowFrontend", policy => - policy.AllowAnyOrigin().AllowAnyHeader().AllowAnyMethod().AllowCredentials())); + policy.WithOrigins("https://localhost:3000").AllowAnyHeader().AllowAnyMethod().AllowCredentials())); var app = builder.Build();