fix: disable HTTPS redirection in Production for Docker deployment
This commit is contained in:
parent
b7f9be8fd9
commit
23232f45a4
@ -37,7 +37,10 @@ if (app.Environment.IsDevelopment())
|
|||||||
app.UseSwaggerUI();
|
app.UseSwaggerUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!app.Environment.IsProduction())
|
||||||
|
{
|
||||||
app.UseHttpsRedirection();
|
app.UseHttpsRedirection();
|
||||||
|
}
|
||||||
|
|
||||||
app.UseCors("AllowAll");
|
app.UseCors("AllowAll");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user