From 3326b17d74222049a51fa9be899f5110b3bf0da4 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 7 Jul 2024 23:20:54 +0300 Subject: [PATCH] fix: try disable origins --- Endpoint/Program.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index 06fc830..fbcfb82 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -60,9 +60,8 @@ public class Program { options.AddPolicy("AllowAll", policy => { - policy.AllowAnyHeader(); policy.AllowAnyMethod(); - policy.WithOrigins("http://localhost:4200"); + policy.AllowAnyHeader(); policy.AllowCredentials(); }); });