diff --git a/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs b/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs index d1448fc318..b75d4093a1 100644 --- a/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs +++ b/aspnetcore/security/enforcing-ssl/sample-snapshot/6.x/Program3.cs @@ -4,7 +4,7 @@ var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); -if (builder.Environment.IsDevelopment()) +if (!builder.Environment.IsDevelopment()) { builder.Services.AddHttpsRedirection(options => {