mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 11:44:56 +00:00
set new UseUrls
This commit is contained in:
+3
-10
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user