Update Program.cs

This commit is contained in:
Artemy
2025-07-01 20:49:14 +07:00
parent e43d3a2c8f
commit f90b124ba3
+2 -5
View File
@@ -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();
});
});