From f54b00ab318f9ff9f055f2b7818681e8c819b2f6 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Sun, 8 Feb 2026 23:15:48 +0700 Subject: [PATCH] set new UseUrls --- Govor.API/Program.cs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/Govor.API/Program.cs b/Govor.API/Program.cs index 9a27186..82fb48f 100644 --- a/Govor.API/Program.cs +++ b/Govor.API/Program.cs @@ -19,14 +19,7 @@ builder.Services.AddCors(options => { options.AddPolicy("AllowFrontend", policy => { - policy.WithOrigins( - "https://localhost:7155", - "http://localhost:7155", - "http://192.168.1.107:8080", - "http://0.0.0.0:8080", - "https://govor-team-govor-8ce1.twc1.net", - "http://govor-team-govor-8ce1.twc1.net" - ) + policy.SetIsOriginAllowed(_ => true) .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials(); @@ -114,8 +107,8 @@ var app = builder.Build(); if (!app.Environment.IsDevelopment()) { //app.MapOpenApi(); - builder.WebHost.UseUrls("http://0.0.0.0:8080"); - builder.WebHost.UseUrls("http://192.168.1.107:8080"); + builder.WebHost.UseUrls("http://72.56.93.242:8080"); + //builder.WebHost.UseUrls("http://192.168.1.107:8080"); } app.UseSwagger();