I'm busy with a Umbraco 13 website and I need to add app.UseHsts() to the program.cs file. Where is the best place to add it, should it be before or after app.BootUmbracoAsync()
if (app.Environment.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
app.UseHsts();
}
Any suggestions will be greatly appreciated.
m
Matthew Alexandros
02/08/2024, 8:43 AM
I belive it should be after the app.BootUmbracoAsync() call. This is where I had to place my header changes to secure x-frame and x-content.