This commit is contained in:
Artemy
2025-07-01 13:25:55 +07:00
parent f855b91155
commit 5883f3e340
12 changed files with 70 additions and 30 deletions
+5 -2
View File
@@ -17,7 +17,7 @@ builder.Services.AddCors(options =>
{
options.AddPolicy("AllowFrontend", policy =>
{
policy.WithOrigins("http://localhost:3000", "https://localhost:3000")
policy.WithOrigins("http://localhost:5000", "https://localhost:5000")
.AllowAnyHeader()
.AllowAnyMethod()
.AllowCredentials();
@@ -106,7 +106,10 @@ if (app.Environment.IsDevelopment())
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseCors();
//app.UseHttpsRedirection();
app.UseRouting();