From c541c404b47f7d4ae37207920391d4ea4cdfd077 Mon Sep 17 00:00:00 2001 From: Artemy <109195690+stalcker2288969@users.noreply.github.com> Date: Tue, 4 Nov 2025 11:58:14 +0700 Subject: [PATCH] added new origins --- Govor.API/Program.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Govor.API/Program.cs b/Govor.API/Program.cs index 65d1f28..e275eac 100644 --- a/Govor.API/Program.cs +++ b/Govor.API/Program.cs @@ -1,4 +1,4 @@ -using System.Text; +using System.Text; using Govor.API.Common.Extensions; using Govor.API.Hubs; using Govor.Application.Services.Authentication; @@ -19,7 +19,12 @@ builder.Services.AddCors(options => { options.AddPolicy("AllowFrontend", policy => { - policy.WithOrigins("https://localhost:7155", "http://localhost:7155") + policy.WithOrigins( + "https://localhost:7155", + "http://localhost:7155", + "https://govor-team-govor-8ce1.twc1.net", + "http://govor-team-govor-8ce1.twc1.net" + ) .AllowAnyHeader() .AllowAnyMethod() .AllowCredentials();