added new origins

This commit is contained in:
Artemy
2025-11-04 11:58:14 +07:00
parent c462d065f4
commit c541c404b4
+7 -2
View File
@@ -1,4 +1,4 @@
using System.Text; using System.Text;
using Govor.API.Common.Extensions; using Govor.API.Common.Extensions;
using Govor.API.Hubs; using Govor.API.Hubs;
using Govor.Application.Services.Authentication; using Govor.Application.Services.Authentication;
@@ -19,7 +19,12 @@ builder.Services.AddCors(options =>
{ {
options.AddPolicy("AllowFrontend", policy => 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() .AllowAnyHeader()
.AllowAnyMethod() .AllowAnyMethod()
.AllowCredentials(); .AllowCredentials();