mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Do not redirect to HTTPS in development.
This commit is contained in:
@@ -257,7 +257,8 @@ file class Program
|
|||||||
// Configure the HTTP request pipeline.
|
// Configure the HTTP request pipeline.
|
||||||
if(app.Environment.IsDevelopment()) app.MapOpenApi();
|
if(app.Environment.IsDevelopment()) app.MapOpenApi();
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
// Only redirect to HTTPS in production
|
||||||
|
if(!app.Environment.IsDevelopment()) app.UseHttpsRedirection();
|
||||||
|
|
||||||
// Use CORS before authentication/authorization
|
// Use CORS before authentication/authorization
|
||||||
app.UseCors("AllowFrontend");
|
app.UseCors("AllowFrontend");
|
||||||
|
|||||||
Reference in New Issue
Block a user