From f90b124ba35e4c54ea2030850ad0a8ba0f9cd744 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Tue, 1 Jul 2025 20:49:14 +0700 Subject: [PATCH] Update Program.cs --- Govor.API/Program.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Govor.API/Program.cs b/Govor.API/Program.cs index 402aaad..3e8940f 100644 --- a/Govor.API/Program.cs +++ b/Govor.API/Program.cs @@ -19,13 +19,10 @@ builder.Services.AddCors(options => { options.AddPolicy("AllowFrontend", policy => { - /*policy.WithOrigins("http://localhost:5000", "https://localhost:5000") + policy.WithOrigins("http://localhost:5000", "https://5.129.212.144:5000") // Укажите ваш публичный IP .AllowAnyHeader() .AllowAnyMethod() - .AllowCredentials();*/ - policy.AllowAnyOrigin() - .AllowAnyHeader() - .AllowAnyMethod(); + .AllowCredentials(); }); });